Part Number Hot Search : 
UF1008CT RURD4120 218200P 80186 AN90B70S RLZ22B LC865608 ICM72
Product Description
Full Text Search
 

To Download PN5120A0ET Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1. introduction this document describes the functionalit y and electrical spec ifications of the transceiver ic pn512. the pn512 is a highly integrated transceiver ic for contactless communication at 13.56 mhz. this transceiver ic utilizes an outstanding modulati on and demodulation concept completely integrated for different kinds of contactless communication methods and protocols at 13.56 mhz. 1.1 different available versions the pn512 is available in three versions: ? pn5120a0hn1/c2 (hvqfn32), pn5120a0h n/c2 (hvqfn40) and PN5120A0ET/c2 (tfbga64), hereafter named as version 2.0 ? pn512aa0hn1/c2 (hvqfn32) and pn512aa0 hn1/c2bi (hvqfn32 with burn in), hereafter named as industrial version, fulfilling the automotive qua lification stated in aec-q100 grade 3 from the automotive el ectronics council, defining the critical stress test qualification for automotive integrated circuits (ics). ? pn5120a0hn1/c1(hvqfn32) and pn5120a0h n/c1 (hvqfn40), hereafter named as version 1.0 the data sheet describes the functionality for the industrial version and version 2.0. the differences of the version 1.0 to the version 2.0 are summarized in section 21 . the industrial version has only diff erences within the outlined ch aracteristics and limitations. 2. general description the pn512 transceiver ics support 4 different operating modes ? reader/writer mode supporting iso/iec 14443a/mi fare and felica scheme ? reader/writer mode supporting iso/iec 14443b ? card operation mode sup porting iso/iec 14443a/mi fare and felica scheme ? nfcip-1 mode enabled in reader/writer mode for iso /iec 14443a/mifare, the pn512?s internal transmitter part is able to drive a reader/writer antenna designed to communicate with iso/iec 14443a/ mifare cards and transponders without additional active circuitry. the receiver part provides a robust and effici ent implementation of a demodulation and pn512 full nfc forum compliant solution rev. 4.5 ? 17 december 2013 111345 product data sheet company public
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 2 of 136 nxp semiconductors pn512 full nfc forum compliant solution decoding circuitry for signals from iso/iec 14443a/mifare compatible cards and transponders. the digital part handles the complete iso/iec 14443a framing and error detection (parity & crc). the pn512 supports mifare 1k or mifare 4k emulation products. the pn512 supports contactless communication using mifare higher transfer speeds up to 424 kbit/s in both directions. enabled in reader/writer mode for felica, the pn512 transceiver ic sup ports the felica communication scheme. the receiver part provides a robust and efficient implementation of the demodulation and decod ing circuitry for felica coded signals. the digital part handles the felica framing and error detection like crc. the pn512 supports contactless communication using felica higher transfer speeds up to 424 kbit/s in both directions. the pn512 supports all layers of the iso/iec 14443b reader/writer communication scheme, given correct implementation of ad ditional components, like oscillator, power supply, coil etc. and provided that standardized protocols, e.g. like iso/iec 14443-4 and/or iso/iec 14443b anticollisio n are correctly implemented. in card operation mode, the pn512 transceiver ic is able to answer to a reader/writer command either according to the felica or iso/iec 14443a/mifare card interface scheme. the pn512 generates the digital load modulated signals and in addition with an external circuit the answer can be sent back to the reader/writer. a complete card functionality is only possible in combination with a secure ic using the s 2 c interface. additionally, the pn512 transceiver ic offers t he possibility to communicate directly to an nfcip-1 device in the nfcip-1 mode. the nf cip-1 mode offers different communication mode and transfer speeds up to 424 kbit/s according to the ecma 340 and iso/iec 18092 nfcip-1 standard. the digital part handles the complete nfcip-1 framing and error detection. various host controller interfaces are implemented: ? 8-bit parallel interface 1 ? spi interface ? serial uart (similar to rs232 with voltag e levels according pad voltage supply) ? i 2 c interface. a purchaser of this nxp ic has to take care for appropriate third party patent licenses. 1. 8-bit parallel interface onl y available in hvqfn40 package.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 3 of 136 nxp semiconductors pn512 full nfc forum compliant solution 3. features and benefits ? highly integrated analog circuitry to demodulate and decode responses ? buffered output drivers for connecting an antenna with the minimum number of external components ? integrated rf level detector ? integrated data mode detector ? supports iso/iec 14443 a/mifare ? supports iso/iec 14443 b read/write modes ? typical operating distance in read/write mode up to 50 mm depending on the antenna size and tuning ? typical operating distance in nfcip-1 mode up to 50 mm depending on the antenna size and tuning and power supply ? typical operating distance in iso/iec 14443 a/mifare card or felica card operation mode of about 100 mm depending on the antenna size and tuning and the external field strength ? supports mifare 1k or mifare 4k emulation encryption in reader/writer mode ? iso/iec 14443a higher transfer speed comm unication at 212 kbit/s and 424 kbit/s ? contactless communication according to the felica scheme at 212 kbit/s and 424 kbit/s ? integrated rf interface for nfcip-1 up to 424 kbit/s ? s 2 c interface ? additional power supply to directly supply the smart card ic connected via s 2 c ? supported host interfaces ? spi up to 10 mbit/s ? i 2 c-bus interface up to 400 kbd in fast mode, up to 3400 kbd in high-speed mode ? rs232 serial uart up to 1228.8 kbd, with voltage levels dependant on pin voltage supply ? 8-bit parallel interface with and without address latch enable ? fifo buffer handles 64 byte send and receive ? flexible inte rrupt modes ? hard reset with low power function ? power-down mode per software ? programmable timer ? internal oscillator for connecti on to 27.12 mhz quartz crystal ? 2.5 v to 3.6 v power supply ? crc coprocessor ? programmable i/o pins ? internal self-test
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 4 of 136 nxp semiconductors pn512 full nfc forum compliant solution 4. quick reference data [1] supply voltages below 3 v reduce the performance in , for example, the achi evable operating distance. [2] v dda , v ddd and v dd(tvdd) must always be the same voltage. [3] v dd(pvdd) must always be the same or lower voltage than v ddd . [4] i pd is the total current for all supplies. [5] i dd(pvdd) depends on the overall load at the digital pins. [6] i dd(tvdd) depends on v dd(tvdd) and the external circuit c onnected to pins tx1 and tx2. [7] during typical circuit operation, the overall current is below 100 ma. [8] typical value using a complementary driv er configuration and an antenna matched to 40 ? between pins tx1 and tx2 at 13.56 mhz. table 1. quick reference data symbol parameter conditions min typ max unit v dda analog supply voltage v dd(pvdd) ? v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.5 - 3.6 v v ddd digital supply voltage v dd(tvdd) tvdd supply voltage v dd(pvdd) pvdd supply voltage [3] 1.6 - 3.6 v v dd(svdd) svdd supply voltage v ssa =v ssd =v ss(pvss) =v ss(tvss) = 0 v 1.6 - 3.6 v i pd power-down current v dda =v ddd = v dd(tvdd) =v dd(pvdd) =3v hard power-down; pin nrstpd set low [4] --5 ? a soft power-down; rf level detector on [4] --10 ? a i ddd digital supply current pin dvdd; v ddd =3v - 6.5 9 ma i dda analog supply current pin avdd; v dda = 3 v, commandreg register?s rcvoff bit = 0 -710ma pin avdd; receiver switched off; v dda =3v, commandreg register?s rcvoff bit = 1 -35ma i dd(pvdd) pvdd supply current pin pvdd [5] --40ma i dd(tvdd) tvdd supply current pin tvdd; continuous wave [6] [7] [8] -60100ma t amb ambient temperature hvq fn32, hvqfn40, tfbga64 ? 30 +85 ?c lndustrial version: i pd power-down current v dda =v ddd = v dd(tvdd) =v dd(pvdd) =3v hard power-down; pin nrstpd set low [4] --15 ? a soft power-down; rf level detector on [4] --30 ? a t amb ambient temperature hvqfn32 ? 40 - +90 ?c
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 5 of 136 nxp semiconductors pn512 full nfc forum compliant solution 5. ordering information table 2. ordering information type number package name description version pn5120a0hn1/c2 hvqfn32 plastic thermal enhanced very thin quad flat package; no leads; 32 terminal; body 5 ? 5 ? 0.85 mm sot617-1 pn5120a0hn/c2 hvqfn40 plastic thermal enhanced very thin quad flat package; no leads; 40 terminals; body 6 ? 6 ? 0.85 mm sot618-1 pn512aa0hn1/c2 hvqfn32 plastic thermal enhanced very thin quad flat package; no leads; 32 terminal; body 5 ? 5 ? 0.85 mm sot617-1 pn512aa0hn1/c2bi hvqfn32 plastic thermal enhanced very thin quad flat package; no leads; 32 terminal; body 5 ? 5 ? 0.85 mm sot617-1 pn5120a0hn1/c1 hvqfn32 plastic thermal enhanced very thin quad flat package; no leads; 32 terminal; body 5 ? 5 ? 0.85 mm sot617-1 pn5120a0hn/c1 hvqfn40 plastic thermal enhanced very thin quad flat package; no leads; 40 terminals; body 6 ? 6 ? 0.85 mm sot618-1 PN5120A0ET/c2 tfbga64 plastic thin fine-pitch ball grid array package; 64 balls sot1336-1
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 6 of 136 nxp semiconductors pn512 full nfc forum compliant solution 6. block diagram the analog interface handles the modulation and demodulation of the analog signals according to the card receiving mode, reader/writer mode and nfcip-1 mode communication scheme. the rf level detector detects the presence of an external rf-field delivered by the antenna to the rx pin. the data mode detector detect s a mifare, felica or nfcip- 1 mode in orde r to prepare the internal receiver to demodulate signals, which are sent to the pn512. the communication (s 2 c) interface provides digital signals to support communication for transfer speeds above 424 kbit/s and digita l signals to communic ate to a secure ic. the contactless uart manages the protocol requirements for the communication protocols in cooperation with the host. the fi fo buffer ensures fast and convenient data transfer to and from the host and the contactless uart and vice versa. various host interfaces are implemented to meet different customer requirements. fig 1. simplified block diagram of the pn512 001aaj627 host antenna fifo buffer analog interface contactless uart serial uart spi i 2 c-bus register bank
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 7 of 136 nxp semiconductors pn512 full nfc forum compliant solution fig 2. detailed block diagram of the pn512 001aak602 dvdd nrstpd irq mfin mfout svdd oscin oscout vmid aux1 aux2 rx tvss tx1 tx2 tvdd 16 19 20 17 10, 14 11 13 12 dvss avdd pvss pvdd sda/nss/rx ea i2c 52 24 32 1 d1/adr_5 25 d2/adr_4 26 d3/adr_3 27 d4/adr_2 28 d5/adr_1/ sck/dtrq 29 d6/adr_0/ mosi/mx 30 d7/scl/ miso/tx 31 avss 3 6 23 7 8 9 21 22 4 15 18 fifo control mifare classic unit state machine command register programable timer interrupt control crc16 generation and check parallel/serial converter serial data switch transmitter control bit counter parity generation and check frame generation and check bit decoding bit encoding random number generator analog to digital converter i-channel amplifier analog test multiplexor and digital to analog converter i-channel demodulator q-channel amplifier clock generation, filtering and distribution q-clock generation oscillator temperature sensor q-channel demodulator amplitude rating reference voltage 64-byte fifo buffer control register bank spi, uart, i 2 c-bus interface control voltage monitor and power on detect reset control power-down control
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 8 of 136 nxp semiconductors pn512 full nfc forum compliant solution 7. pinning information 7.1 pinning fig 3. pinning configuration hvqfn32 (sot617-1) fig 4. pinning configuration hvqfn40 (sot618-1) 001aan212 pn512 transparent top view rx sigin sigout avss nrstpd aux1 pvss aux2 dvss oscin dvdd oscout pvdd irq a1 ale svdd tvss tx1 tvdd tx2 tvss avdd vmid a0 d7 d6 d5 d4 d3 d2 d1 8 17 7 18 6 19 5 20 4 21 3 22 2 23 1 24 9 10 11 12 13 14 15 16 32 31 30 29 28 27 26 25 terminal 1 index area 001aan213 pn512 avss nrstpd sigin aux1 pvss aux2 dvss oscin dvdd oscout pvdd irq a5 nwr a4 nrd a3 ale a2 ncs sigout svdd tvss tx1 tvdd tx2 tvss avdd vmid rx a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 10 21 9 22 8 23 7 24 6 25 5 26 4 27 3 28 2 29 1 30 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 terminal 1 index area transparent top view
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 9 of 136 nxp semiconductors pn512 full nfc forum compliant solution fig 5. pin configuration tfbga64 (sot1336-1) aaa-005873 tfbga64 transparent top view ball a1 index area h g f e d c b a 246 13578
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 10 of 136 nxp semiconductors pn512 full nfc forum compliant solution 7.2 pin description table 3. pin description hvqfn32 pin symbol type description 1a1i address line 2 pvdd pwr pad power supply 3dvddpwr digital power supply 4 dvss pwr digital ground 5 pvss pwr pad power supply ground 6 nrstpd i not reset and power down: when low, internal current sinks are switched off, the oscillator is inhibited, and the input pads are disconnected from the outside world. with a positive edge on this pin the internal reset phase starts. 7 sigin i communication in terface input: accepts a digital, serial data stream 8 sigout o communication in terface output : delivers a serial data stream 9 svdd pwr s2c pad power supply: provides power to the s 2 c pads 10 tvss pwr transmitter ground: supplies the output stage of tx1 and tx2 11 tx1 o transmitter 1: delivers the modulated 13.56 mhz energy carrier 12 tvdd pwr transmitter power supply: supplies the output stage of tx1 and tx2 13 tx2 o transmitter 2: delivers the modulated 13.56 mhz energy carrier 14 tvss pwr transmitter ground: supplies the output stage of tx1 and tx2 15 avdd pwr analog power supply 16 vmid pwr internal reference voltage: this pin delivers the internal reference voltage. 17 rx i receiver input 18 avss pwr analog ground 19 aux1 o auxiliary outputs: these pins are used for testing. 20 aux2 o 21 oscin i crystal oscillator input: input to the inverting amplifier of the oscillator. this pin is also the input for an externally generated clock (f osc = 27.12 mhz). 22 oscout o crystal oscillator output: output of the inverting am plifier of the oscillator. 23 irq o interrupt request: output to signal an interrupt event 24 ale i address latch enable: signal to latch ad0 to ad5 into the internal address latch when high. 25 to 31 d1 to d7 i/o 8-bit bi-directional data bus. remark: an 8-bit parallel interface is not available. remark: if the host controller selects i 2 c as digital host controlle r interface, these pins can be used to define the i 2 c address. remark: for serial interfaces this pins can be used for test signals or i/os. 32 a0 i address line
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 11 of 136 nxp semiconductors pn512 full nfc forum compliant solution table 4. pin description hvqfn40 pin symbol type description 1 to 4 a2 to a5 i address line 5 pvdd pwr pad power supply 6dvddpwr digital power supply 7 dvss pwr digital ground 8 pvss pwr pad power supply ground 9 nrstpd i not reset and power down: when low, internal current sinks are switched off, the oscillator is inhibited, and the input pads are disconnected from the outside world. with a positive edge on this pin the internal reset phase starts. 10 sigin i communication in terface input: accepts a digital, serial data stream 11 sigout o communication in terface output : delivers a serial data stream 12 svdd pwr s 2 c pad power supply: provides power to the s 2 c pads 13 tvss pwr transmitter ground: supplies the output stage of tx1 and tx2 14 tx1 o transmitter 1: delivers the modulated 13.56 mhz energy carrier 15 tvdd pwr transmitter power supply: supplies the output stage of tx1 and tx2 16 tx2 o transmitter 2: delivers the modulated 13.56 mhz energy carrier 17 tvss pwr transmitter ground: supplies the output stage of tx1 and tx2 18 avdd pwr analog power supply 19 vmid pwr internal reference voltage: this pin delivers the internal reference voltage. 20 rx i receiver input 21 avss pwr analog ground 22 aux1 o auxiliary outputs: these pins are used for testing. 23 aux2 o 24 oscin i crystal oscillator input: input to the inverting amplifier of the oscillator. this pin is also the input for an externally generated clock (f osc = 27.12 mhz). 25 oscout o crystal oscillator output: output of the inverting am plifier of the oscillator. 26 irq o interrupt request: output to signal an interrupt event 27 nwr i not write: strobe to write data (applied on d0 to d7) into the pn512 register 28 nrd i not read: strobe to read data from the pn5 12 register (applied on d0 to d7) 29 ale i address latch enable: signal to latch ad0 to ad5 into the internal address latch when high. 30 ncs i not chip select: selects and activates the host controller interface of the pn512 31 to 38 d0 to d7 i/o 8-bit bi-directional data bus. remark: for serial interfaces this pins can be used for test signals or i/os. remark: if the host controller selects i 2 c as digital host controlle r interface, these pins can be used to define the i 2 c address. 39 to 40 a0 to a1 i address line
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 12 of 136 nxp semiconductors pn512 full nfc forum compliant solution table 5. pin description tfbga64 pin symbol type description a1 to a5, a8, b3, b4, b8, e1 pvss pwr pad power supply ground a6 d4 i/o 8-bit bi-directional data bus. remark: for serial interfaces this pins can be used for test signals or i/os. remark: if the host controller selects i 2 c as digital host controller interface, these pins can be used to define the i 2 c address. a7 d2 i/o b1 pvdd pwr pad power supply b2 a0 i address line b5 d5 i/o 8-bit bi-directional data bus. remark: for serial interfaces this pins can be used for test signals or i/os. remark: if the host controller selects i 2 c as digital host controller interface, these pins can be used to define the i 2 c address. b6 d3 i/o b7 d1 i/o c1 dvdd pwr digital power supply c2 a1 i address line c3 d7 i/o 8-bit bi-directional data bus. remark: for serial interfaces this pins can be used for test signals or i/os. remark: if the host controller selects i 2 c as digital host controller interface, these pins can be used to define the i 2 c address. c4 d6 i/o c5 irq o interrupt request: output to signal an interrupt event c6 ale i address latch enable: signal to latch ad0 to ad5 into the internal address latch when high. c7, c8, d6, d8, e6, e8, f7, g8, h8 avss pwr analog ground d1 dvss pwr digital ground d2 nrstpd i not reset and power down: when low, internal current sinks are switched off, the oscillator is inhibit ed, and the input pads are di sconnected from the outside world. with a positive edge on this pin the internal reset phase starts. d3 to d5, e3 to e5, f3, f4, g1 to g6, h1, h2, h6 tvss pwr transmitter ground: supplies the output stage of tx1 and tx2 d7 oscout o crystal oscillator output: output of the inverting am plifier of the oscillator. e2 sigin i communication in terface input: accepts a digital, serial data stream e7 oscin i crystal oscillator input: input to the inverting amplifier of the oscillator. this pin is also the input for an externally generated clock (f osc =27.12mhz). f1 svdd pwr s 2 c pad power supply: provides power to the s 2 c pads f2 sigout o communication in terface output : delivers a serial data stream f5 aux1 o auxiliary outputs: these pins are used for testing. f6 aux2 o f8 rx i receiver input g7 vmid pwr internal reference voltage: this pin delivers the internal reference voltage. h3 tx1 o transmitter 1: delivers the modulated 13.56 mhz energy carrier
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 13 of 136 nxp semiconductors pn512 full nfc forum compliant solution h4 tvdd pwr transmitter power supply: supplies the output stage of tx1 and tx2 h5 tx2 o transmitter 2: delivers the modulated 13.56 mhz energy carrier h7 avdd pwr analog power supply table 5. pin description tfbga64 pin symbol type description
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 14 of 136 nxp semiconductors pn512 full nfc forum compliant solution 8. functional description the pn512 transmission module supports the read/write mode for iso/iec 14443 a/mifare and iso/iec 14443 b using various transfer speeds and modulation protocols. pn512 transceiver ic supports the following operating modes: ? reader/writer mode sup porting iso/iec 14443a/mi fare and felica scheme ? card operation mode sup porting iso/iec 14443a/mi fare and felica scheme ? nfcip-1 mode the modes support different transfer speeds and modulation schemes. the following chapters will explain the different modes in detail. note: all indicated modulation indices and modes in this chapter are system parameters. this means that beside the ic settings a suitab le antenna tuning is required to achieve the optimum performance. 8.1 iso/iec 14443 a/mifare functionality the physical level communication is shown in figure 7 . the physical parameters are described in ta b l e 4 . fig 6. pn512 read/write mode 001aan218 battery reader/writer contactless card microcontroller pn512 iso/iec 14443 a card fig 7. iso/iec 14443 a/mifare read/w rite mode communication diagram table 6. communication overview for iso/iec 14443 a/mifare reader/writer communication direction signal type transfer speed 106 kbd 212 kbd 424 kbd reader to card (send data from the pn512 to a card) reader side modulation 100 % ask 100 % ask 100 % ask bit encoding modified miller encoding modified miller encoding modified miller encoding bit length 128 (13.56 ? s) 64 (13.56 ? s) 32 (13.56 ? s) (1) (2) 001aan219 pn512 iso/iec 14443 a card iso/iec 14443 a reader
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 15 of 136 nxp semiconductors pn512 full nfc forum compliant solution the pn512?s contactless uart and dedicated external host must manage the complete iso/iec 14443 a/mifare protocol. figure 8 shows the data coding and framing according to iso/iec 14443 a/mifare. the internal crc coprocessor calculates the crc value based on iso/iec 14443 a part 3 and handles parity generation internally according to the transfer speed. automatic parity generation can be switched off using the manualrcvreg register?s paritydisable bit. 8.2 iso/iec 14443 b functionality the pn512 reader ic fully supports international standard iso 14443 which includes communication schemes iso 14443 a and iso 14443 b. refer to the iso 14443 reference documents identification cards - contactless integrated circuit cards - proximity cards (parts 1 to 4). remark: nxp semiconductors does not offer a software library to enable design-in of the iso 14443 b protocol. card to reader (pn512 receives data from a card) card side modulation subcarrier load modulation subcarrier load modulation subcarrier load modulation subcarrier frequency 13.56 mhz/16 13.56 mhz/16 13.56 mhz/16 bit encoding manchester encoding bpsk bpsk table 6. communication overview for iso/iec 14443 a/mifare reader/writer ?continued communication direction signal type transfer speed 106 kbd 212 kbd 424 kbd fig 8. data coding and framing according to iso/iec 14443 a 001aak585 iso/iec 14443 a framing at 106 kbd 8-bit data 8-bit data 8-bit data odd parity odd parity start odd parity start bit is 1 iso/iec 14443 a framing at 212 kbd, 424 kbd and 848 kbd 8-bit data 8-bit data 8-bit data odd parity odd parity start even parity start bit is 0 burst of 32 subcarrier clocks even parity at the end of the frame
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 16 of 136 nxp semiconductors pn512 full nfc forum compliant solution 8.3 felica reader/w riter functionality the felica mode is the general reader/writer to ca rd communication scheme according to the felica specification. th e following diagram descri bes the communication on a physical level, the communication overview describes the physical parameters. the contactless uart of pn512 and a dedicated external host controller are required to handle the complete felica protocol. 8.3.1 felica framing and coding to enable the felica communication a 6 byte preamble (00h, 00h, 00h, 0 0h, 00h, 00h) and 2 bytes sync bytes (b2h, 4dh) are sent to synchronize the receiver. the following len byte indicates the length of t he sent data bytes plus the len byte itself. the crc calculation is done according to th e felica definitions with the msb first. to transmit data on the rf interface, the host controller has to send the len- and data- bytes to the pn512's fifo-buffer. the preamble and the sync bytes are generated by the pn512 automatically and must not be writte n to the fifo by the host controller. the pn512 performs inte rnally the crc calculation and adds the result to the data frame. example for felica crc calculation: fig 9. felica reader/writer communication diagram table 7. communication overview for felica reader/writer communication direction felica felica higher transfer speeds transfer speed 212 kbit/s 424 kbit/s pn512 ? card modulation on reader side 8-30 % ask 8-30 % ask bit coding manchester coding manchester coding bitlength (64/13.56) ? s (32/13.56) ? s card ? pn512 loadmodulation on card side > 12 % ask > 12 % ask bit coding manchester coding manchester coding 2. picc to pcd, > 12 % ask loadmodulation manchester coded, baudrate 212 to 424 kbaud 1. pcd to picc, 8-30 % ask manchester coded, baudrate 212 to 424 kbaud 001aan214 pn512 felica card (picc) felica reader (pcd) table 8. felica framing and coding preamble sync len n-data crc 00h 00h 00h 00h 00h 00h b2h 4dh table 9. start value for the c rc polynomial: (00h), (00h) preamble sync len 2 data bytes crc 00h 00h 00h 00h 00h 00h b2h 4dh 03h abh cdh 90h 35h
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 17 of 136 nxp semiconductors pn512 full nfc forum compliant solution 8.4 nfcip-1 mode the nfcip-1 communication differentiates between an active and a passive communication mode. ? active communication mode means both the initiator and the target are using their own rf field to transmit data. ? passive communication mode means that the target answers to an initiator command in a load modulation scheme. th e initiator is active in terms of generating the rf field. ? initiator: generates rf field at 13.56 mhz and starts the nfcip-1 communication ? target: responds to initiator command either in a load modulation scheme in passive communication mode or using a self generat ed and self modulated rf field for active communication mode. in order to fully support the nfcip-1 standard the pn512 supports the active and passive communication mode at the transfer spee ds 106 kbit/s, 212 kbit/s and 424 kbit/s as defined in the nfcip-1 standard. fig 10. nfcip-1 mode 001aan215 battery initiator: active target: passive or active microcontroller pn512 battery microcontroller pn512
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 18 of 136 nxp semiconductors pn512 full nfc forum compliant solution 8.4.1 active communication mode active communication mode means both the initiator and the target are using their own rf field to transmit data. the contactless uart of pn512 and a dedicated host controller are required to handle the nfcip-1 protocol. note: transfer speeds above 424 kbit/s are not defined in the nfcip-1 standard. the pn512 supports these transfer speeds only with dedicated external circuits. fig 11. active communication mode table 10. communication overview for active communication mode communication direction 106 kbit/s 212 kbit/s 424 kbit/s 848 kbit/s 1.69 mbit/s, 3.39 mbit/s initiator ? target according to iso/iec 14443a 100 % ask, modified miller coded according to felica, 8-30 % ask manchester coded digital capability to handle this communication ta r g e t ? initiator host nfc initiator powered to generate rf field 1. initiator starts communication at selected transfer speed initial command response 2. target answers at the same transfer speed host nfc initiator powered for digital processing host host nfc target nfc target powered for digital processing powered to generate rf field 001aan216
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 19 of 136 nxp semiconductors pn512 full nfc forum compliant solution 8.4.2 passive communication mode passive communication mode means that the targ et answers to an initiator command in a load modulation scheme. the initiator is active meaning generating the rf field. the contactless uart of pn512 and a dedicated host controller are required to handle the nfcip-1 protocol. note: transfer speeds above 424 kbit/s are not defined in the nfcip-1 standard. the pn512 supports these transfer speeds only with dedicated external circuits. fig 12. passive communication mode table 11. communication overview for passive communication mode communication direction 106 kbit/s 212 kbit/s 424 kbit/s 848 kbit/s 1.69 mbit/s, 3.39 mbit/s initiator ? target according to iso/iec 14443a 100 % ask, modified miller coded according to felica, 8-30 % ask manchester coded digital capability to handle this communication ta r g e t ? initiator according to iso/iec 14443a subcarrier load modulation, manchester coded according to felica, > 12 % ask manchester coded host nfc initiator powered to generate rf field 1. initiator starts communication at selected transfer speed 2. targets answers using load modulated data at the same transfer speed host nfc target powered for digital processing 001aan217
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 20 of 136 nxp semiconductors pn512 full nfc forum compliant solution 8.4.3 nfcip-1 framing and coding the nfcip-1 framing and coding in active and passive communication mode is defined in the nfcip-1 standard. 8.4.4 nfcip-1 protocol support the nfcip-1 protocol is not completely described in this document. for detailed explanation of the protocol refer to the nf cip-1 standard. however the datalink layer is according to the following policy: ? speed shall not be changed while continuum data exchange in a transaction. ? transaction includes initialization and anticollision me thods and data exchange (in continuous way, meaning no interruption by another transaction). in order not to disturb current infrastructure based on 13.56 mhz general rules to start nfcip-1 communication are defined in the following way. 1. per default nfcip-1 device is in target mode meaning its rf fi eld is switched off. 2. the rf level detector is active. 3. only if application requires the nfcip-1 device shall switch to initiator mode. 4. initiator shall only s witch on its rf field if no external rf field is detected by rf level detector during a time of tidt. 5. the initiator performs initialization a ccording to the selected mode. 8.4.5 mifare card operation mode table 12. framing and coding overview transfer speed framing and coding 106 kbit/s according to the iso/iec 14443a/mifare scheme 212 kbit/s according to the felica scheme 424 kbit/s according to the felica scheme table 13. mifare card operation mode communication direction iso/iec 14443a/ mifare mifare higher transfer speeds transfer speed 106 kbit/s 212 kbit/s 424 kbit/s reader/writer ? pn512 modulation on reader side 100 % ask 100 % ask 100 % ask bit coding modified miller modified miller modified miller bitlength (128/13.56) ? s (64/13.56) ? s (32/13.56) ? s pn512 ? reader/ writer modulation on pn512 side subcarrier load modulation subcarrier load modulation subcarrier load modulation subcarrier frequency 13.56 mhz/16 13.56 mhz/16 13.56 mhz/16 bit coding manchester coding bpsk bpsk
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 21 of 136 nxp semiconductors pn512 full nfc forum compliant solution 8.4.6 felica card operation mode 9. pn512 register set 9.1 pn512 registers overview table 14. felica card operation mode communication direction felica felica higher transfer speeds transfer speed 212 kbit/s 424 kbit/s reader/writer ? pn512 modulation on reader side 8-30 % ask 8-30 % ask bit coding manchester coding manchester coding bitlength (64/13.56) ? s (32/13.56) ? s pn512 ? reader/ writer load modulation on pn512 side > 12 % ask load modulation > 12 % ask load modulation bit coding manchester coding manchester coding table 15. pn512 registers overview addr (hex) register name function page 0: command and status 0 pagereg selects the register page 1 commandreg starts and stops command execution 2 comlenreg controls bits to enable and disable the passing of interrupt requests 3 divlenreg controls bits to enable and disable the passing of interrupt requests 4 comirqreg contains interrupt request bits 5 divirqreg contains interrupt request bits 6 errorreg error bits showing the error status of the last command executed 7 status1reg contains status bits for communication 8 status2reg contains status bits of the receiver and transmitter 9 fifodatareg in- and output of 64 byte fifo-buffer a fifolevelreg indicates the number of bytes stored in the fifo b waterlevelreg defines the level for fifo under- and overflow warning c controlreg contains miscellaneous control registers d bitframingreg adjustments for bit oriented frames e collreg bit position of the first bit collision detected on the rf-interface f rfu reserved for future use page 1: command 0 pagereg selects the register page 1 modereg defines general modes for transmitting and receiving 2 txmodereg defines the data rate and framing during transmission 3 rxmodereg defines the data rate and framing during receiving 4 txcontrolreg controls the logical behavior of the antenna driver pins tx1 and tx2 5 txautoreg controls the sett ing of the antenna drivers
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 22 of 136 nxp semiconductors pn512 full nfc forum compliant solution 6 txselreg selects the internal sources for the antenna driver 7 rxselreg selects internal receiver settings 8 rxthresholdreg selects thresholds for the bit decoder 9 demodreg defines demodulator settings a felnfc1reg defines the length of t he valid range for the receive package b felnfc2reg defines the length of t he valid range for the receive package c mifnfcreg controls the communication in iso/iec 14443/mifare and nfc target mode at 106 kbit d manualrcvreg allows manual fine tuning of the internal receiver e typebreg configure the iso/iec 14443 type b f serialspeedreg selects the speed of the serial uart interface page 2: cfg 0 pagereg selects the register page 1 crcresultreg shows the actual msb and lsb values of the crc calculation 2 3 gsnoffreg selects the conductance of the antenna driver pins tx1 and tx2 for modulation, when the dr iver is switched off 4 modwidthreg controls the setting of the modwidth 5 txbitphasereg adjust the tx bit phase at 106 kbit 6 rfcfgreg configures the receiver gain and rf level 7 gsnonreg selects the conductance of the antenna driver pins tx1 and tx2 for modulation when the drivers are switched on 8 cwgspreg selects the conductance of th e antenna driver pins tx1 and tx2 for modulation during times of no modulation 9 modgspreg selects the conductance of the antenna driver pins tx1 and tx2 for modulation during modulation a tmodereg tprescalerreg defines settings for the internal timer b c treloadreg describes the 16-bit timer reload value d e tcountervalreg shows the 16-bit actual timer value f page 3: testregister 0 pagereg selects the register page 1 testsel1reg general test signal configuration 2 testsel2reg general test signal configuration and prbs control 3 testpinenreg enables pin output driver on 8-bit parallel bus (note: for serial interfaces only) 4testpin valuereg defines the values for the 8-bit parallel bus when it is used as i/o bus 5 testbusreg shows the status of the internal testbus 6 autotestreg controls the digital selftest table 15. pn512 registers overview ?continued addr (hex) register name function
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 23 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.1.1 register bit behavior depending on the functionality of a register, the access conditions to the register can vary. in principle bits with same behavior are grouped in common registers. in ta b l e 1 6 the access conditions are described. 7 versionreg shows the version 8 analogtestreg controls the pins aux1 and aux2 9 testdac1reg defines the test value for the testdac1 a testdac2reg defines the test value for the testdac2 b testadcreg shows the actual value of adc i and q c-f rft reserved for production tests table 15. pn512 registers overview ?continued addr (hex) register name function table 16. behavior of register bits and its designation abbreviation behavior description r/w read and write these bits can be written and read by the ? -controller. since they are used only for control means, ther e content is not influenced by internal state machines, e.g. the pageselect-register may be written and read by the ? -controller. it will also be read by internal state machines, but never changed by them. dy dynamic these bits can be written and read by the ? -controller. nevertheless, they may also be wr itten automatically by internal state machines, e.g. the comm and-register changes its value automatically after the execut ion of the actual command. r read only these registers hold bits, which value is determined by internal states only, e.g. the crcread y bit can not be written from external but shows internal states. w write only reading these registers returns always zero. rfu - these registers are reserved for future use. in case of a pn512 version version 2.0 (versionreg = 82h) a read access to these registers returns always th e value ?0?. nevertheless this is not guaranteed for future chips versions where the value is undefined. in case of a write access, it is recommended to write always the value ?0?. rft - these registers are reserved for production tests and shall not be changed.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 24 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2 register description 9.2.1 page 0: command and status 9.2.1.1 pagereg selects the register page. 9.2.1.2 commandreg starts and stops command execution. table 17. pagereg register (address 00h); reset value: 00h, 0000000b 7 6 5 4 3 2 1 0 usepage select 0 0 0 0 0 pageselect access rights r/w rfu rfu rfu rfu rfu r/w r/w table 18. description of pagereg bits bit symbol description 7 usepageselect set to logic 1, the value of pageselect is used as register address a5 and a4. the lsb-bits of the register address are defined by the address pins or the internal address latch, respectively. set to logic 0, the whole content of the internal address latch defines the register address. the address pins are used as described in section 10.1 ? automatic microcontroller interface detection ? . 6 to 2 - reserved for future use. 1 to 0 pageselect the value of pageselect is used only if usepageselect is set to logic 1. in this case it specifies the register page (which is a5 and a4 of the register address). table 19. commandreg register (address 01h); reset value: 20h, 00100000b 7 6 5 4 3 2 1 0 0 0 rcvoff power down command access rights rfurfur/w dy dydydydy table 20. description of commandreg bits bit symbol description 7 to 6 - reserved for future use. 5 rcvoff set to logic 1, the analog part of the receiver is switched off. 4 powerdown set to logic 1, soft power-down mode is entered. set to logic 0, the pn512 starts the wake up procedure. during this procedure this bit still shows a 1. a 0 indicates that the pn512 is ready for operations; see section 16.2 ? soft power-down mode ? . note: the bit power down cannot be set, when the command softreset has been activated. 3 to 0 command activates a command according to the command code. reading this register shows, which comman d is actually executed (see section 19.3 ? pn512 command overview ? ).
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 25 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.1.3 commienreg control bits to enable and disable the passing of interrupt requests. table 21. commienreg register (address 02h); reset value: 80h, 10000000b 7 6 5 4 3 2 1 0 irqinv txien rxien idleien hialert ien loalertien errien timerien access rights r/w r/w r/w r/w r/w r/w r/w r/w table 22. description of commienreg bits bit symbol description 7 irqinv set to logic 1, the signal on pin irq is inverted with respect to bit irq in the register status1reg. set to logic 0, the signal on pin irq is equal to bit irq. in combination with bit irqpushpull in register divienreg, the default value of 1 ensures, that the output level on pin irq is 3-state. 6 txien allows the transmitter interrupt request (indicated by bit txirq) to be propagated to pin irq. 5 rxien allows the receiver interrupt re quest (indicated by bit rxirq) to be propagated to pin irq. 4 idleien allows the idle interrupt request (indicated by bit idleirq) to be propagated to pin irq. 3 hialertien allows the high alert interrupt request (indicated by bit hialertirq) to be propagated to pin irq. 2 loalertien allows the low alert interrupt re quest (indicated by bit loalertirq) to be propagated to pin irq. 1 errien allows the error interrupt request (indicated by bit erri rq) to be propagated to pin irq. 0 timerien allows the timer interrupt reque st (indicated by bit timerirq) to be propagated to pin irq.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 26 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.1.4 divienreg control bits to enable and disable the passing of interrupt requests. table 23. divienreg register (address 03h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 irqpushpull 0 0 siginactien modeien crcien rfonien rfoffien access rights r/w rfu rfu r/w r/w r/w r/w r/w table 24. description of divienreg bits bit symbol description 7 irqpushpull set to logic 1, the pin irq works as standard cmos output pad. set to logic 0, the pin irq works as open drain output pad. 6 to 5 - reserved for future use. 4 siginactien allows the sigin active inte rrupt request to be propagated to pin irq. 3 modeien allows the mode interrupt req uest (indicated by bit modeirq) to be propagated to pin irq. 2 crcien allows the crc interrupt request (indicated by bit crcirq) to be propagated to pin irq. 1 rfonien allows the rf field on interrupt request (indicated by bit rfonirq) to be propagated to pin irq. 0 rfoffien allows the rf field off interrupt request (indicated by bit rfoffirq) to be propagated to pin irq.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 27 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.1.5 commirqreg contains interrupt request bits. table 25. commirqreg register (address 04h); reset value: 14h, 00010100b 7 6 5 4 3 2 1 0 set1 txirq rxirq idleirq hialertirq loalertirq errirq timerirq access rights w dydydy dy dy dy dy table 26. description of commirqreg bits all bits in the register commirqreg shall be cleared by software. bit symbol description 7 set1 set to logic 1, set1 defines that t he marked bits in the register commirqreg are set. set to logic 0, set1 defines, that the marked bits in the register commirqreg are cleared. 6 txirq set to logic 1 immediately after the last bit of the transmitted data was sent out. 5 rxirq set to logic 1 when the receiver detects the end of a valid datastream. if the bit rxnoerr in register rxmodereg is set to logic 1, bit rxirq is only set to logic 1 when data bytes are available in the fifo. 4 idleirq set to logic 1, when a command terminates by itself e.g. when the commandreg changes its value from any command to the idle command. if an unknown command is started, th e commandreg changes its content to the idle state and the bit idleirq is set. starting the idle command by the ? -controller does not set bit idleirq. 3 hialertirq set to logic 1, when bit hialert in register status1reg is set. in opposition to hialert, hialertirq stores this event and can only be reset as indicated by bit set1. 2 loalertirq set to logic 1, when bit loalert in register status1reg is set. in opposition to loalert, loalertirq stores this event and can only be reset as indicated by bit set1. 1 errirq set to logic 1 if any error bit in the error register is set. 0 timerirq set to logic 1 when the timer decrements the timervalue register to zero.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 28 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.1.6 divirqreg contains interrupt request bits table 27. divirqreg register (address 05h); reset value: xxh, 000x00xxb 7 6 5 4 3 2 1 0 set2 0 0 siginactirq modeirq crcirq rfonirq rfoffirq access rights wrfurfu dy dy dy dy dy table 28. description of divirqreg bits all bits in the register divirqreg shall be cleared by software. bit symbol description 7 set2 set to logic 1, set2 defines that the marked bits in the register divirqreg are set. set to logic 0, set2 defines, that the marked bits in the register divirqreg are cleared 6 to 5 - reserved for future use. 4 siginactirq set to logic 1, when sigin is active. see section 12.6 ? s 2 c interface support ? . this interrupt is set when either a rising or falling signal edge is detected. 3 modeirq set to logic 1, when the mode has been detected by the data mode detector. note: the data mode detector can only be activated by the autocoll command and is terminated automatically having detected the communication mode. note: the data mode detector is automatically restarted after each rf reset. 2 crcirq set to logic 1, when the crc command is active and all data are processed. 1 rfonirq set to logic 1, when an external rf field is detected. 0 rfoffirq set to logic 1, when a present external rf field is switched off.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 29 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.1.7 errorreg error bit register showing the error status of the last command executed. [1] command execution will clear all error bits except for bit temperr. a setting by software is impossible. table 29. errorreg register (address 06h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 wrerr temperr rferr bufferovfl collerr crcerr parityerr protocolerr access rights rrrr rrr r table 30. description of errorreg bits bit symbol description 7 wrerr set to logic 1, when data is written into fifo by the host controller during the autocoll command or mfauthent command or if data is written into fifo by the host controller during the time between sending the last bit on the rf interface and receiving the last bit on the rf interface. 6 temperr [1] set to logic 1, if the internal temperature sensor detects overheating. in this case, the antenna drivers are switched off automatically. 5 rferr set to logic 1, if in active co mmunication mode the counterpart does not switch on the rf field in time as defined in nfcip-1 standard. note: rferr is only used in active communication mode. the bits rxframing or the bits txframing has to be set to 01 to enable this functionality. 4 bufferovfl set to logic 1, if the host cont roller or a pn512?s internal state machine (e.g. receiver) tries to write data into the fifo-bufferfifo-buffer although the fifo-buffer is already full. 3 collerr set to logic 1, if a bit-collision is detected. it is clear ed automatically at receiver start-up phase. this bi t is only valid during the bitwise anticollision at 106 kbit. during communication schemes at 212 and 424 kbit this bit is always set to logic 1. 2 crcerr set to logic 1, if bit rxcrcen in register rxmodereg is set and the crc calculation fails. it is cleared to 0 automatically at receiver start-up phase. 1 parityerr set to logic 1, if the parity check has failed. it is cleared automatically at receiver start-up phase. only valid for iso/iec 14443a/mifare or nfcip-1 communication at 106 kbit. 0 protocolerr set to logic 1, if one out of the following cases occur: ? set to logic 1 if the sof is incorrect. it is cleared automatically at receiver start-up phase. the bit is only valid for 106 kbit in active and passive communication mode. ? if bit detectsync in register modereg is set to logic 1 during felica communication or active communication with transfer speeds higher than 106 kbit, the bit protocolerr is set to logic 1 in case of a byte length violation. ? during the autocoll command, bit protocolerr is set to logic 1, if the bit initiator in register controlreg is set to logic 1. ? during the mfauthent command, bi t protocolerr is set to logic 1, if the number of bytes received in one data stream is incorrect. ? set to logic 1, if the miller decoder detects 2 pulses below the minimum time according to the iso/iec 14443a definitions.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 30 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.1.8 status1reg contains status bits of the crc, interrupt and fifo-buffer. table 31. status1reg register (address 07h); reset value: xxh, x100x01xb 7 6 5 4 3 2 1 0 rffreqok crcok crcready irq trunning rfon hialert loalert access rights rr rrrrrr table 32. description of status1reg bits bit symbol description 7 rffreqok indicates if the frequency detect ed at the rx pin is in the range of 13.56 mhz. set to logic 1, if the frequency at the rx pin is in the range 12 mhz < rx pin frequency < 15 mhz. note: the value of rffreqok is not defined if the external rf frequency is in the range from 9 to 12 mhz or in the range from 15 to 19 mhz. 6 crcok set to logic 1, if the crc result is zero. for data transmission and reception the bit crcok is undefined (use crcerr in register errorreg). crcok indicates the st atus of the crc co-processor, during calculation the value changes to zero, when the calculation is done correctly, the value changes to one. 5 crcready set to logic 1, when the crc calculation has finished. this bit is only valid for the crc co-processor calculation using the command calccrc. 4 irq this bit shows, if any interrupt so urce requests attention (with respect to the setting of the interrupt enable bits, see register commienreg and divienreg). 3 trunning set to logic 1, if the pn512?s timer unit is running, e.g. the timer will decrement the tcountervalreg with the next timer clock. note: in the gated mode the bit trunning is set to logic 1, when the timer is enabled by the register bits. this bit is not influenced by the gated signal. 2 rfon set to logic 1, if an external rf field is detected. this bit does not store the state of the rf field. 1 hialert set to logic 1, when the number of bytes stored in the fifo-buffer fulfills the following equation: example: fifolength = 60, waterlevel = 4 ? hialert = 1 fifolength = 59, waterlevel = 4 ? hialert = 0 0 loalert set to logic 1, when the number of bytes stored in the fifo-buffer fulfills the following equation: example: fifolength = 4, waterlevel = 4 ? loalert = 1 fifolength = 5, waterlevel = 4 ? loalert = 0 hialert 64 fifolength ? ? ? waterlevel ? = loalert fifolength waterlevel ? =
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 31 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.1.9 status2reg contains status bits of the receiver, transmitter and data mode detector. table 33. status2reg register (address 08h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 tempsensclear i 2 cforcehs 0 targetactivated mfcrypto1on modem state access rights r/w r/w rfu dy dy r r r table 34. description of status2reg bits bit symbol description 7 tempsensclear set to logic 1, this bit clears the temperature error, if the temperature is below the alarm limit of 125 ?c. 6i 2 cforcehs i 2 c input filter settings. set to logic 1, the i 2 c input filter is set to the high-speed mode independent of the i 2 c protocol. set to logic 0, the i 2 c input filter is set to the used i 2 c protocol. 5 - reserved for future use. 4 targetactivated set to logic 1 if the sele ct command or if the polling command was answered. note: this bit can only be set during the autocoll command in passive communication mode. note: this bit is cleared automatically by switching off the external rf field. 3 mfcrypto1on this bit indicates that th e mifare crypto1 unit is switched on and therefore all data communication with the card is encrypted. this bit can only be set to logic 1 by a successful execution of the mfauthent command. this bit is on ly valid in reader/writer mode for mifare cards. this bit sh all be cleared by software. 2 to 0 modem state modemstate shows the state of the transmitter and receiver state machines. value description 000 idle 001 wait for startsend in register bitframingreg 010 txwait: wait until rf field is present, if the bit txwaitrf is set to logic 1. the minimum time for txwait is defined by the txwaitreg register. 011 sending 100 rxwait: wait until rf field is present, if the bit rxwaitrf is set to logic 1. the minimum time for rxwait is defined by the rxwaitreg register. 101 wait for data 110 receiving
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 32 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.1.10 fifodatareg in- and output of 64 byte fifo-buffer. 9.2.1.11 fifolevelreg indicates the number of bytes stored in the fifo. table 35. fifodatareg regi ster (address 09h); reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 fifodata access rights dy dy dy dy dy dy dy dy table 36. description of fifodatareg bits bit symbol description 7 to 0 fifodata data input and output port for the internal 64 byte fifo-buffer. the fifo-buffer acts as parallel in/para llel out converter for all serial data stream in- and outputs. table 37. fifolevelreg register (address 0ah); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 flushbuffer fifolevel access rights w rrrrrrr table 38. description of fifolevelreg bits bit symbol description 7 flushbuffer set to logic 1, this bit clears the internal fifo-buffer?s read- and write-pointer and the bit bufferovfl in the register errreg immediately. reading this bit will always return 0. 6 to 0 fifolevel indicates the number of bytes stored in the fifo-buffer. writing to the fifodatareg increments, reading decrements the fifolevel.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 33 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.1.12 waterlevelreg defines the level for fifo under- and overflow warning. 9.2.1.13 controlreg miscellaneous control bits. table 39. waterlevelreg register (address 0bh); reset value: 08h, 00001000b 7 6 5 4 3 2 1 0 0 0 waterlevel access rights rfu rfu r/w r/w r/w r/w r/w r/w table 40. description of waterlevelreg bits bit symbol description 7 to 6 - reserved for future use. 5 to 0 waterlevel this register defines a warning level to indicate a fifo-buffer over- or underflow: the bit hialert in status1reg is se t to logic 1, if the remaining number of bytes in the fifo-buffer spac e is equal or less than the defined number of waterlevel bytes. the bit loalert in status1reg is set to logic 1, if equal or less than waterlevel bytes are in the fifo. note: for the calculation of hialert and loalert see ta b l e 3 1 table 41. controlreg register (address 0ch); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 tstopnow tstartnow wrnfcidtofifo initiator 0 rxlastbits access rights w w dy r/wrfurrr table 42. description of controlreg bits bit symbol description 7 tstopnow set to logic 1, the timer stops immediately. reading this bit will always return 0. 6 tstartnow set to logic 1 st arts the timer immediately. reading this bit will always return 0. 5 wrnfcidtofifo set to logic 1, the internal stored nfcid (10 bytes) is copied into the fifo. afterwards the bit is cleared automatically 4 initiator set to logic 1, the pn512 acts as initiator, otherwise it acts as target 3 - reserved for future use. 2 to 0 rxlastbits shows the number of valid bits in the last received byte. if zero, the whole byte is valid.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 34 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.1.14 bitframingreg adjustments for bit oriented frames. table 43. bitframingreg register (address 0dh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 startsend rxalign 0 txlastbits access rights w r/w r/w r/w rfu r/w r/w r/w table 44. description of bitframingreg bits bit symbol description 7 startsend set to logic 1, the transmission of data starts. this bit is only valid in combination with the transceive command. 6 to 4 rxalign used for reception of bit orie nted frames: rxalign defines the bit position for the first bit received to be stored in the fifo. further received bits are stored at the following bit positions. example: rxalign = 0: the lsb of the received bit is stored at bit 0, the second received bit is stored at bit position 1. rxalign = 1: the lsb of the received bit is stored at bit 1, the second received bit is stored at bit position 2. rxalign = 7: the lsb of the received bit is stored at bit 7, the second received bit is stored in the following byte at bit position 0. this bit shall only be used for bitwise anticollision at 106 kbit/s in passive communication mode. in all other modes it shall be set to logic 0. 3 - reserved for future use. 2 to 0 txlastbits used for transmission of bit oriented frames: txlastbits defines the number of bits of the last byte th at shall be transmitted. a 000 indicates that all bits of the last byte shall be transmitted.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 35 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.1.15 collreg defines the first bit collision detected on the rf interface. table 45. collreg register (addre ss 0eh); reset value: xxh, 101xxxxxb 7 6 5 4 3 2 1 0 values aftercoll 0collpos notvalid collpos access rights r/wrfurrrrrr table 46. description of collreg bits bit symbol description 7 valuesaftercoll if this bit is set to logic 0, all receiving bits will be cleared after a collision. this bit shall only be used during bitwise anticollision at 106 kbit, otherwise it shall be set to logic 1. 6 - reserved for future use. 5 collposnotvalid set to logic 1, if no collision is detected or the position of the collision is out of the range of bits collpos. this bit shall only be interpreted in passive communication mode at 106 kbit or iso/iec 14443a/mifare reader/writer mode. 4 to 0 collpos these bits show the bit position of the first detected collision in a received frame, only data bits are interpreted. example: 00h indicates a bit collision in the 32 th bit 01h indicates a bit collision in the 1 st bit 08h indicates a bit collision in the 8 th bit these bits shall only be interpreted in passive communication mode at 106 kbit or iso/iec 14443a/mifare reader/writer mode if bit collposnotvalid is set to logic 0.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 36 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2 page 1: communication 9.2.2.1 pagereg selects the register page. table 47. pagereg register (address 10h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 usepage select00000 pageselect access rights r/w rfu rfu rfu rfu rfu r/w r/w table 48. description of pagereg bits bit symbol description 7 usepage select set to logic 1, the value of pageselect is used as register address a5 and a4. the lsb-bits of the register address are defined by the address pins or the internal address latch, respectively. set to logic 0, the whole content of the internal address latch defines the register address. the address pins are used as described in section 10.1 ? automatic microcontroller interface detection ? . 6 to 2 - reserved for future use. 1 to 0 pageselect the value of pageselect is used only, if usepageselect is set to logic 1. in this case it specifies the register page (which is a5 and a4 of the register address).
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 37 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.2 modereg defines general mode settings for transmitting and receiving. table 49. modereg register (address 11h); reset value: 3bh, 00111011b 7 6 5 4 3 2 1 0 msbfirst detect sync txwaitrf rxwaitrf polsigin modedetoff crcpreset access rights r/w r/w r/w r/w r/w r/w r/w r/w table 50. description of modereg bits bit symbol description 7 msbfirst set to logic 1, the crc co-processor calculates the crc with msb first and the crcresultmsb and the crcresultlsb in the crcresultreg register are bit reversed. note: during rf communication this bit is ignored. 6 detect sync if set to logic 1, the contactless uart waits for the value f0h before the receiver is activated and f0h is added as a sync-byte for transmission. this bit is only valid for 106 kbit during nfcip-1 data exchange protocol. in all other modes it shall be set to logic 0. 5 txwaitrf set to logic 1 the transmitter in reader/writer or initiator mode for nfcip-1 can only be started, if an rf field is generated. 4 rxwaitrf set to logic 1, the counter for rxwait starts only if an external rf field is detected in target mode for nfcip-1 or in card communication mode. 3 polsigin polsigin defines the polarity of the sigin pin. set to logic 1, the polarity of sigin pin is active high. set to logic 0 the polarity of sigin pin is active low. note: the internal envelope signal is coded active low. note: changing this bit will generate a siginactirq event. 2 modedetoff set to logic 1, the internal mode detector is switched off. note: the mode detector is only active during the autocoll command. 1 to 0 crcpreset defines the preset value for the crc co-processor for the command calcrc. note: during any communication, the preset values is selected automatically according to the def inition in the bits rxmode and txmode. value description 00 0000 01 6363 10 a671 11 ffff
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 38 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.3 txmodereg defines the data rate and framing during transmission. table 51. txmodereg register (addre ss 12h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 txcrcen txspeed invmod txmix txframing access rights r/w dy dy dy r/w r/w dy dy table 52. description of txmodereg bits bit symbol description 7 txcrcen set to logic 1, this bit enables the crc generation during data transmission. note: this bit shall only be set to logic 0 at 106 kbit. 6 to 4 txspeed defines the bit rate while data transmission. value description 000 106 kbit 001 212 kbit 010 424 kbit 011 848 kbit 100 1696 kbit 101 3392 kbit 110 reserved 111 reserved note: the bit coding for transfer speeds above 424 kbit is equivalent to the bit coding of active communication mode 424 kbit (ecma 340). 3 invmod set to logic 1, the modulation for transmitting data is inverted. 2 txmix set to logic 1, the signal at pin sigin is mixed with the internal coder (see section 12.6 ? s 2 c interface support ? ). 1 to 0 txframing defines the framing used for data transmission. value description 00 iso/iec 14443a/mifare and passive communication mode 106 kbit 01 active communication mode 10 felica and passive communication mode 212 and 424 kbit 11 iso/iec 14443b
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 39 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.4 rxmodereg defines the data rate and framing during reception. table 53. rxmodereg register (address 13h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 rxcrcen rxspeed rxnoerr rxmultiple rxframing access rights r/w dydydyr/w r/w dy dy table 54. description of rxmodereg bits bit symbol description 7 rxcrcen set to logic 1, this bit enables the crc calculation during reception. note: this bit shall only be set to logic 0 at 106 kbit. 6 to 4 rxspeed defines the bit rate while data transmission. the pn512?s analog part handles only transfer speeds up to 424 kbit internally, the digital uart handles the higher transfer speeds as well. value description 000 106 kbit 001 212 kbit 010 424 kbit 011 848 kbit 100 1696 kbit 101 3392 kbit 110 reserved 111 reserved note: the bit coding for transfer speeds above 424 kbit is equivalent to the bit coding of active communication mode 424 kbit (ecma 340). 3 rxnoerr if set to logic 1 a not valid received data stream (less than 4 bits received) will be ignored. the receiver will remain active. for iso/iec14443b also rxsofreq logic 1 is required to ignore a non valid datastream. 2 rxmultiple set to logic 0, the receiver is deactivated after receiving a data frame. set to logic 1, it is possible to receive more than one data frame. having set this bit, the receive and tr ansceive commands will not terminate automatically. in this case the multiple receiving can only be deactivated by writing any command (except the receive command) to the commandreg register or by clearing the bit by the host controller. at the end of a received data stream an error byte is added to the fifo. the error byte is a copy of the errorreg register. the behaviour for version 1.0 is described in section 21 ? errata sheet ? on page 109 .
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 40 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.5 txcontrolreg controls the logical behavior of t he antenna driver pins tx1 and tx2. 1 to 0 rxframing defines the expected framing for data reception. value description 00 iso/iec 14443a/mifare and passive communication mode 106 kbit 01 active communication mode 10 felica and passive communication mode 212 and 424 kbit 11 iso/iec 14443b table 54. description of rxmodereg bits bit symbol description table 55. txcontrolreg register (address 14h); reset value: 80h, 10000000b 7 6 5 4 3 2 1 0 invtx2rf on invtx1rf on invtx2rf off invtx1rf off tx2cw checkrf tx2rf en tx1rf en access rights r/w r/w r/w r/w r/w w r/w r/w table 56. description of txcontrolreg bits bit symbol description 7 invtx2rfon set to logic 1, the output signal at pin tx2 will be inverted, if driver tx2 is enabled. 6 invtx1rfon set to logic 1, the output signal at pin tx1 will be inverted, if driver tx1 is enabled. 5 invtx2rfoff set to logic 1, the output signal at pin tx2 will be inverted, if driver tx2 is disabled. 4 invtx1rfoff set to logic 1, the output signal at pin tx1 will be inverted, if driver tx1 is disabled. 3 tx2cw set to logic 1, the output signal on pin tx2 will deliver continuously the un-modulated 13.56 mhz energy carrier. set to logic 0, tx2cw is enabled to modulate the 13.56 mhz energy carrier. 2 checkrf set to logic 1, tx2rfen and tx1rfen can not be set if an external rf field is detected. only valid wh en using in combination with bit tx2rfen or tx1rfen 1 tx2rfen set to logic 1, the output signal on pin tx2 will deliver the 13.56 mhz energy carrier modulated by the transmission data. 0 tx1rfen set to logic 1, the output signal on pin tx1 will deliver the 13.56 mhz energy carrier modulated by the transmission data.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 41 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.6 txautoreg controls the settings of the antenna driver. table 57. txautoreg register (addre ss 15h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 autorf off force100 ask auto wakeup 0 caon initialrf on tx2rfaut oen tx1rfauto en access rights r/w r/w r/w rfu r/w r/w r/w r/w table 58. description of txautoreg bits bit symbol description 7 autorfoff set to logic 1, all active antenna drivers are switched off after the last data bit has been transmitted as defined in the nfcip-1. 6 force100ask set to logic 1, force 100ask forces a 100% ask modulation independent of the setting in register modgspreg. 5 autowakeup set to logic 1, the pn512 in soft power-down mode will be started by the rf level detector. 4 - reserved for future use. 3 caon set to logic 1, the collision avoidance is activated and internally the value n is set in accordance to the nfcip-1 standard. 2 initialrfon set to logic 1, the initial rf collision avoidance is performed and the bit initialrfon is cleared automatically, if the rf is switched on. note: the driver, which should be switched on, has to be enabled by bit tx2rfautoen or bit tx1rfautoen. 1 tx2rfautoen set to logic 1, the driver tx2 is switched on after the external rf field is switched off according to the time tadt. if the bits initialrfon and tx2rfautoen are set to logic 1, tx2 is switched on if no external rf field is detected during the time tidt. note: the times tadt and tidt are defined in the nfc ip-1 standard (iso/iec 18092). 0 tx1rfautoen set to logic 1, the driver tx1 is switched on after the external rf field is switched off according to the time tadt. if the bit initialrfon and tx1rfautoen are set to logic 1, tx1 is switched on if no external rf field is detected during the time tidt. note: the times tadt and tidt are defined in the nfc ip-1 standard (iso/iec 18092).
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 42 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.7 txselreg selects the sources for the analog part. table 59. txselreg register (address 16h); reset value: 10h, 00010000b 7 6 5 4 3 2 1 0 0 0 driversel sigoutsel access rights rfu rfu r/w r/w r/w r/w r/w r/w table 60. description of txselreg bits bit symbol description 7 to 6 - reserved for future use. 5 to 4 driversel selects the input of driver tx1 and tx2. value description 00 tristate note: in soft power down the drivers are only in tristate mode if driversel is set to tristate mode. 01 modulation signal (envelope) from the internal coder 10 modulation signal (envelope) from sigin 11 high note: the high level depends on the setting of invtx1rfon/ invtx1rfoff and invt x2rfon/invtx2rfoff.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 43 of 136 nxp semiconductors pn512 full nfc forum compliant solution 3 to 0 sigoutsel selects the input for the sigout pin. value description 0000 tristate 0001 low 0010 high 0011 testbus signal as defined by bit testbusbitsel in register testsel1reg. 0100 modulation signal (envelope) from the internal coder 0101 serial data stream to be transmitted 0110 output signal of the receiver circuit (card modulation signal regenerated and delayed). this signal is used as data output signal for sam interface connection using 3 lines. note: to have a valid signal the pn512 has to be set to the receiving mode by either the transceive or receive command. the bit rxmultiple can be used to keep the pn512 in receiving mode. note: do not use this setting in mifare mode. manchester coding as data collisions will not be transmitted on the sigout line. 0111 serial data stream received. note: do not use this setting in mifare mode. miller coding parameters as the bit length can vary. 1000-1011 felica sam modulation 1000 rx* 1001 tx 1010 demodulator comparator output 1011 rfu note: * to have a valid signal the pn512 has to be set to the receiving mode by either the transceive or receive command. the bit rxmultiple can be used to keep the pn512 in receiving mode. 1100-1111 mifare sam modulation 1100 rx* with rf carrier 1101 tx with rf carrier 1110 rx with rf carrier un-filtered 1111 rx envelope un-filtered note: *to have a valid signal the pn512 has to be set to the receiving mode by either the transceive or receive command. the bit rxmultiple can be used to keep the pn512 in receiving mode. table 60. description of txselreg bits ?continued bit symbol description
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 44 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.8 rxselreg selects internal re ceiver settings. 9.2.2.9 rxthresholdreg selects thresholds for the bit decoder. table 61. rxselreg register (address 17h); reset value: 84h, 10000100b 7 6 5 4 3 2 1 0 uartsel rxwait access rights r/w r/w r/w r/w r/w r/w r/w r/w table 62. description of rxselreg bits bit symbol description 7 to 6 uartsel selects the input of the contactless uart value description 00 constant low 01 envelope signal at sigin 10 modulation signal from the internal analog part 11 modulation signal from sigin pin. only valid for transfer speeds above 424 kbit 5 to 0 rxwait after data transmission, the activation of the receiver is delayed for rxwait bit-clocks. during this ?frame guard time ? any signal at pin rx is ignored. this parameter is ig nored by the receive command. all other commands (e.g. transceive, autocoll, mfauthent) use this parameter. depending on the mode of the pn512, the counter starts different. in passive communication mode the counter starts with the last modulation pulse of the transmitted data stream. in active communication mode the counter starts immediately after the external rf field is switched on. table 63. rxthresholdreg register (address 18h); reset value: 84h, 10000100b 7 6 5 4 3 2 1 0 minlevel 0 colllevel access rights r/w r/w r/w r/w rfu r/w r/w r/w table 64. description of rxthresholdreg bits bit symbol description 7 to 4 minlevel defines the minimum signal st rength at the decoder input that shall be accepted. if the signal strength is below this level, it is not evaluated. 3 - reserved for future use. 2 to 0 colllevel defines the minimum signal strength at the decoder input that has to be reached by the weaker half-bit of the manchester-coded signal to generate a bit-collision relatively to the amplitude of the stronger half-bit.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 45 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.10 demodreg defines demodulator settings. table 65. demodreg register (address 19h); reset value: 4dh, 01001101b 7 6 5 4 3 2 1 0 addiq fixiq tprescal even taurcv tausync access rights r/w r/w r/w r/w r/w r/w r/w r/w table 66. description of demodreg bits bit symbol description 7 to 6 addiq defines the use of i and q channel during reception note: fixiq has to be set to logic 0 to enable the following settings. value description 00 select the stronger channel 01 select the stronger and freeze the selected during communication 10 combines the i and q channel 11 reserved 5 fixiq if set to logic 1 and the bits of addiq are set to x0, the reception is fixed to i channel. if set to logic 1 and the bits of addiq are set to x1, the reception is fixed to q channel. note: if sigin/sigout is used as s2c interface fixiq set to 1 and addiq set to x0 is rewired. 4 tprescale ven if set to logic 0 the following formula is used to calculate ftimer of the prescaler: f timer = 13.56 mhz / (2 * tprescaler + 1). if set to logic 1 the following formula is used to calculate ftimer of the prescaler: ftimer = 13.56 mhz / (2 * tprescaler + 2). (default tprescaleven is logic 0) the behaviour for the version 1.0 is described in section 21 ? errata sheet ? on page 109 . 3 to 2 taurcv changes the time constant of the internal during data reception. note: if set to 00, the pll is frozen during data reception. 1 to 0 tausync changes the time constant of the internal pll during burst.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 46 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.11 felnfc1reg defines the length of the felica sync bytes and the minimum length of the received packet. table 67. felnfc1reg register (address 1ah); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 felsynclen datalenmin access rights r/w r/w r/w r/w r/w r/w r/w r/w table 68. description of felnfc1reg bits bit symbol description 7 to 6 felsynclen defines the length of the sync bytes. value sync- bytes in hex 00 b2 4d 01 00 b2 4d 10 00 00 b2 4d 11 00 00 00 b2 4d 5 to 0 datalenmin these bits define the minimu m length of the accepted packet length: datalenmin * 4 ? data packet length this parameter is ignored at 106 kbit if the bit detectsync in register modereg is set to logic 0 . if a received data packet is shorter than the defined datalenmin value, the data packet will be ignored.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 47 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.12 felnfc2reg defines the maximum length of the received packet. table 69. felnfc2reg register (address1bh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 waitforselected shorttimeslot datalenmax access rights r/w r/w r/w r/w r/w r/w r/w r/w table 70. description of felnfc2reg bits bit symbol description 7 waitforselected set to logic 1, the autocoll command is only terminated automatically when: 1. a valid command has been received after performing a valid select procedure according iso/iec 14443a. 2. a valid command has been received after performing a valid polling procedure according to the felica specification. note: if this bit is set, no ac tive communication is possible. note: setting this bit reduces the host controller interaction in case of a communication to another device in the same rf field during passive communication mode. 6 shorttimeslot defines the time slot le ngth for passive communication mode at 424 kbit. set to logic 1 a short time slot is used (half of the timeslot at 212 kbit). set to logic 0 a long timeslot is used (equal to the timeslot for 212 kbit). 5 to 0 datalenmax these bits define the maximum length of the accepted packet length: datalenmax * 4 ? data packet length note: if set to logic 0 the maximum data length is 256 bytes. this parameter is ignored at 106 kbit if the bit detectsync in register modereg is set to logic 0. if a received packet is larger than the defined datalenmax value, the packet will be ignored.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 48 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.13 mifnfcreg defines iso/iec 14443a/mifare/nfc specific settings in target or card operating mode. table 71. mifnfcreg register (address 1ch); reset value: 62h, 01100010b 7 6 5 4 3 2 1 0 sensmiller taumiller mfhalted txwait access rights r/w r/w r/w r/w r/w r/w r/w r/w table 72. description of mifnfcreg bits bit symbol description 7 to 5 sensmiller these bits define th e sensitivity of t he miller decoder. 4 to 3 taumiller these bits define the time constant of the miller decoder. 2 mfhalted set to logic 1, this bit indicates that the pn512 is set to halt mode in card operation mode at 106 kbit. this bit is either set by the host controller or by the internal state machine and indicates that only the code 52h is accepted as a request command. this bit is cleared automatically by a rf reset. 1 to 0 txwait these bits define the minimum response time between receive and transmit in number of data bits + 7 data bits. the shortest possible minimum response time is 7 data bits. (txwait=0). the minimum response time can be increased by the number of bits defined in txwait. the longest minimum response time is 10 data bits (txwait = 3). if a transmission of a frame is st arted before the minimum response time is over, the pn512 waits bef ore transmitting the data until the minimum response time is over. if a transmission of a frame is started after the minimum response time is over, the frame is started immediately if the data bit synchronization is correct. (adjustable with txbitphase).
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 49 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.14 manualrcvreg allows manual fine tuning of the internal receiver. remark: for standard applications it is not recommended to change this register settings. table 73. manualrcvreg register (address 1dh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 0fastfilt mf_so delay mf_so parity disable largebw pll manual hpcf hpfc access rights rfu r/w r/w r/w r/w r/w r/w r/w table 74. description of manualrcvreg bits bit symbol description 7 - reserved for future use. 6fastfilt mf_so if this bit is set to logic 1, the intern al filter for the miller-delay circuit is set to fast mode. note: this bit should only set to logic 1, if millerpulses of less than 400 ns pulse length are expected. at 106 kbaud the typical value is 3us. 5 delay mf_so if this bit is set to logic 1, the signal at sigout-pin is delayed, so that in sam mode the signal at sigin mu st be 128/fc faster compared to the iso/iec 14443a, to reach the iso/iec 14443a restrictions on the rf-field. note: this delay shall only be activated for setting bits sigoutsel to (1110b) or (1111b) in register txselreg. 4 parity disable if this bit is set to logi c 1, the generation of the parity bit for transmission and the parity-check for receiving is switched off. the received parity bit is handled like a data bit. 3 largebwpll set to logic 1, the bandwidth of the internal pll used for clock recovery is extended. 2 manualhpcf set to logic 0, the hpcf bits are ignored and the hpcf settings are adapted automatically to the receivi ng mode. set to logic 1, values of hpcf are valid. 1 to 0 hpfc selects the high pass corner frequency (hpcf) of the filter in the internal receiver chain 00 for signals with frequency spectrum down to 106 khz. 01 for signals with frequency spectrum down to 212 khz. 10 for signals with frequency spectrum down to 424 khz. 11 for signals with frequency spectrum down to 848 khz
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 50 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.2.15 typebreg 9.2.2.16 serialspeedreg selects the speed of the serial uart interface. table 75. typebreg register (address 1eh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 rxsof req rxeof req 0eofso fwidth notxsof notxeof txegt access rights r/w r/w rfu r/w r/w r/w r/w r/w table 76. description of typebreg bits bit symbol description 7 rxsofreq if this bit is set to logic 1, the sof is required. a datastream starting without sof is ignored. if this bit is cleared, a datastream with and without sof is accepted. the sof will be removed and not written into the fifo. 6 rxeofreq if this bit is set to logic 1, the eof is required. a datastream ending without eof will generate a protocol-e rror. if this bit is cleared, a datastream with and without eof is accepted. the eof will be removed and not written into the fifo. for the behaviour in version 1.0, see section 21 ? errata sheet ? on page 109 . 5 - reserved for future use. 4 eofsofwidth if this bit is set to logic 1 and eofsofadjust bit is logic 0, the sof and eof will have the maximum length defined in iso/iec 14443b. if this bit is cleared and eofsofadjust bit is logic 0, the sof and eof will have the minimum length defined in iso/iec 14443b. if this bit is set to 1 and the eofsofadjust bit is logic 1 will result in sof low = (11etu ? 8 cycles)/fc sof high = (2 etu + 8 cycles)/fc eof low = (11 etu ? 8 cycles)/fc if this bit is set to 0 and the eofsofadjust bit is logic 1 will result in an incorrect system behavior in respect to iso specification. for the behaviour in version 1.0, see section 21 ? errata sheet ? on page 109 . 3 notxsof if this bit is set to logic 1, the generation of th e sof is suppressed. 2 notxeof if this bit is set to logic 1, the generation of th e eof is suppressed. 1 to 0 txegt these bits define the length of the egt. value description 00 0 bit 01 1 bit 10 2 bits 11 3 bits
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 51 of 136 nxp semiconductors pn512 full nfc forum compliant solution table 77. serialspeedreg register (addre ss 1fh); reset value: ebh, 11101011b 7 6 5 4 3 2 1 0 br_t0 br_t1 access rights r/w r/w r/w r/w r/w r/w r/w r/w table 78. description of serialspeedreg bits bit symbol description 7 to 5 br_t0 factor br_t0 to adjust t he transfer speed, for description see section 10.3.2 ? selectable uart transfer speeds ? . 3 to 0 br_t1 factor br_t1 to adjust t he transfer speed, for description see section 10.3.2 ? selectable uart transfer speeds ? .
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 52 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.3 page 2: configuration 9.2.3.1 pagereg selects the register page. 9.2.3.2 crcresultreg shows the actual msb and lsb values of the crc calculation. note: the crc is split in to two 8-bit register. note: setting the bit msbfirst in modereg register reverses the bit order, the byte order is not changed. table 79. pagereg register (address 20h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 usepageselect 0 0 0 0 0 pageselect access rights r/w rfu rfu rfu rfu rfu r/w r/w table 80. description of pagereg bits bit symbol description 7 usepageselect set to logic 1, the value of p ageselect is used as register address a5 and a4. the lsb-bits of the register address are defined by the address pins or the internal address latch, respectively. set to logic 0, the whole content of the internal address latch defines the register address. the address pins are used as described in section 10.1 ? automatic microcontroller interface detection ? . 6 to 2 - reserved for future use. 1 to 0 pageselect the value of pageselect is used only if usepageselect is set to logic 1. in this case, it specifies the register page (which is a5 and a4of the register address). table 81. crcresultreg register (add ress 21h); reset value: ffh, 11 111111b 7 6 5 4 3 2 1 0 crcresultmsb access rightsrrrrrrrr table 82. description of crcresultreg bits bit symbol description 7 to 0 crcresultmsb this register shows the act ual value of the most significant byte of the crcresultreg register. it is valid only if bit crcready in register status1reg is set to logic 1. table 83. crcresultreg register (add ress 22h); reset value: ffh, 11 111111b 7 6 5 4 3 2 1 0 crcresultlsb access rightsrrrrrrrr table 84. description of crcresultreg bits bit symbol description 7 to 0 crcresultlsb this register shows the act ual value of the least significant byte of the crcresult register. it is valid only if bit crcready in register status1reg is set to logic 1.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 53 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.3.3 gsnoffreg selects the conductance for the n-driver of the antenna driver pins tx1 and tx2 when the driver is switched off. table 85. gsnoffreg register (address 23h); reset value: 88h, 10001000b 7 6 5 4 3 2 1 0 cwgsnoff modgsnoff access rights r/w r/w r/w r/w r/w r/w r/w r/w table 86. description of gsnoffreg bits bit symbol description 7 to 4 cwgsnoff the value of this register defines the conducta nce of the output n-driver during times of no modulation. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1. note: the value of the register is on ly used if the driver is switched off. otherwise the bit value cw gsnon of register gsnonreg is used. note: this value is used for loadmodulation. 3 to 0 modgsnoff the value of this register defines the conducta nce of the output n-driver for the time of modulation . this may be used to regulate the modulation index. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1. note: the value of the register is on ly used if the driver is switched off. otherwise the bit value modg snon of register gsnonreg is used note: this value is used for loadmodulation.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 54 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.3.4 modwidthreg controls the modulati on width settings. 9.2.3.5 txbitphasereg adjust the bitphase at 106 kbit during transmission. table 87. modwidthreg register (address 24h); reset value: 26h, 00100110b 7 6 5 4 3 2 1 0 modwidth access rights r/w r/w r/w r/w r/w r/w r/w r/w table 88. description of modwidthreg bits bit symbol description 7 to 0 modwidth these bits define the width of the miller modulation as initiator in active and passive communication mode as multiples of the carrier frequency (modwidth + 1/fc). the maximum value is half the bit period. acting as a target in passive communication mode at 106 kbit or in card operating mode for iso/iec 14443a/mifare these bits are used to change the duty cycle of the subcarrier frequency. the resulting number of carrier perio ds are calculated according to the following formulas: low value: #clockslow = (modwidth modulo 8) + 1. high value: #clocksh igh = 16-#clockslow. table 89. txbitphasereg register (addr ess 25h); reset value: 87h, 10000111b 7 6 5 4 3 2 1 0 rcvclkchange txbitphase access rights r/w r/w r/w r/w r/w r/w r/w r/w table 90. description of txbitphasereg bits bit symbol description 7 rcvclkchange set to logic 1, the demodulator?s clock is derived by the external rf field. 6 to 0 txbitphase these bits are representin g the number of carrier frequency clock cycles, which are added to the wa iting period befor e transmitting data in all communication modes. txbitphase is used to adjust the tx bit synchronization during pass ive nfcip-1 communication mode at 106 kbit and in iso/iec 14443a/mifare card mode.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 55 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.3.6 rfcfgreg configures the receiver gain and rf level detector sensitivity. table 91. rfcfgreg register (address 26h); reset value: 48h, 01001000b 7 6 5 4 3 2 1 0 rflevelamp rxgain rflevel access rights r/w r/w r/w r/w r/w r/w r/w r/w table 92. description of rfcfgreg bits bit symbol description 7 rflevelamp set to logic 1, this bit activates the rf level detectors? amplifier. 6 to 4 rxgain this register defines the receivers signal voltage gain factor: value description 000 18 db 001 23 db 010 18 db 011 23 db 100 33 db 101 38 db 110 43 db 111 48 db 3 to 0 rflevel defines the sensitivity of the rf level detector, for description see section 12.3 ? rf level detector ? .
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 56 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.3.7 gsnonreg selects the conductance for the n-driver of the antenna driver pins tx1 and tx2 when the driver is switched on. 9.2.3.8 cwgspreg defines the conductance of the p-dr iver during times of no modulation table 93. gsnonreg register (address 27h); reset value: 88h, 10001000b 7 6 5 4 3 2 1 0 cwgsnon modgsnon access rights r/w r/w r/w r/w r/w r/w r/w r/w table 94. description of gsnonreg bits bit symbol description 7 to 4 cwgsnon the value of this register defines the conducta nce of the output n-driver during times of no modulati on. this may be used to regulate the output power and subsequent ly current consumption and operating distance. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1. note: this value is only used if t he driver tx1 or tx2 are switched on. otherwise the value of the bits cw gsnoff of register gsnoffreg is used. 3 to 0 modgsnon the value of this register defines the conducta nce of the output n-driver for the time of modulation. this may be used to regulate the modulation index. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1. note: this value is only used if the driver tx1 or tx2 are switched on. otherwise the value of the bits m odsnoff of register gsnoffreg is used. table 95. cwgspreg register (address 28h); reset value: 20h, 00100000b 7 6 5 4 3 2 1 0 00 cwgsp access rights rfu rfu r/w r/w r/w r/w r/w r/w table 96. description of cwgspreg bits bit symbol description 7 to 6 - reserved for future use. 5 to 0 cwgsp the value of this register defines the conducta nce of the output p-driver. this may be used to regulate the output power and subsequently current consumpt ion and operating distance. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 57 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.3.9 modgspreg defines the driver p-output conductance during modulation. [1] if force100ask is set to logic 1, the value of modgsp has no effect. 9.2.3.10 tmode register , tprescaler register defines settings for the timer. note: the prescaler value is sp lit into two 8-bit registers table 97. modgspreg register (address 29h); reset value: 20h, 00100000b 7 6 5 4 3 2 1 0 00 modgsp access rights rfu rfu r/w r/w r/w r/w r/w r/w table 98. description of modgspreg bits bit symbol description 7 to 6 - reserved for future use. 5 to 0 modgsp [1] the value of this register defines the conductance of the output p-driver for the time of modulation. this may be used to regulate the modulation index. note: the conductance value is binary weighted. note: during soft power-down mode the highest bit is forced to 1. table 99. tmodereg register (address 2ah); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 tauto tgated tautorestart tprescaler_hi access rights r/w r/w r/w r/w r/w r/w r/w r/w table 100. description of tmodereg bits bit symbol description 7 tauto set to logic 1, the timer starts automatically at the end of the transmission in all communication modes at all speeds or when bit initialrfon is set to logic 1 and the rf field is switched on. in mode mifare and iso14443-b 106k bit/s the timer stops after the 5th bit (1 startbit, 4 databits) if the bit rxmultiple in the register rxmodereg is not set. in all other modes, the timer stops after the 4th bit if the bit rxmultiple the register rxmodereg is not set. if rxmultiple is set to logic 1, the timer never stops. in this case the timer can be stopped by setting the bit tst opnow in register controlreg to 1. set to logic 0 indicates, that the timer is not influenced by the protocol.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 58 of 136 nxp semiconductors pn512 full nfc forum compliant solution 6 to 5 tgated the internal timer is running in gated mode. note: in the gated mode, the bit trunning is 1 when the timer is enabled by the register bits. this bit does not influence the gating signal. value description 00 non gated mode 01 gated by sigin 10 gated by aux1 11 gated by a3 4 tautorestart set to logic 1, the timer automatically restart its count-down from treloadvalue, instead of counting down to zero. set to logic 0 the timer decrements to zero and the bit timerirq is set to logic 1. 3 to 0 tprescaler_hi defines higher 4 bits for tprescaler. the following formula is used to calculate f timer if tprescaleven bit in demot reg is set to logic 0: f timer = 13.56 mhz/(2*tprescaler+1). where tprescaler = [tprescaler_hi :tprescaler_lo] (t prescaler value on 12 bits) (default tprescaleven is logic 0) the following formula is used to calculate ftimer if tprescaleven bit in demot reg is set to logic 1: f timer = 13.56 mhz/(2*tprescaler+2). for detailed description see section 15 ? timer unit ? . for the behaviour within version 1.0, see section 21 ? errata sheet ? on page 109 . table 101. tprescalerreg register (address 2bh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 tprescaler_lo access rights r/w r/w r/w r/w r/w r/w r/w r/w table 102. description of tprescalerreg bits bit symbol description 7 to 0 tprescaler_lo defines lower 8 bits for tprescaler. the following formula is used to calculate f timer if tprescaleven bit in demot reg is set to logic 0: f timer = 13.56 mhz/(2*tprescaler+1). where tprescaler = [tprescaler_hi: tprescaler_lo] (tprescaler value on 12 bits) the following formula is used to calculate ftimer if tprescaleven bit in demot reg is set to logic 1: f timer = 13.56 mhz/(2*tprescaler+2). where tprescaler = [tprescaler_hi: tprescaler_lo] (tprescaler value on 12 bits) for detailed description see section 15 ? timer unit ? . table 100. description of tmodereg bits ?continued bit symbol description
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 59 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.3.11 treloadreg describes the 16-bit long timer reload value. note: the reload value is sp lit into two 8-bit registers. table 103. treloadreg (higher bits) register (address 2ch); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 treloadval_hi access rights r/w r/w r/w r/w r/w r/w r/w r/w table 104. description of th e higher treloadreg bits bit symbol description 7 to 0 treloadval_hi defines the higher 8 bits for the treloadreg. with a start event the timer loads the treloadval. changing this register affects the timer only at the next start event. table 105. treloadreg (lower bits) register (address 2dh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 treloadval_lo access rights r/w r/w r/w r/w r/w r/w r/w r/w table 106. description of lower treloadreg bits bit symbol description 7 to 0 treloadval_lo defines the lower 8 bits for the treloadreg. with a start event the timer loads the treloadval. changing this register affects the timer only at the next start event.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 60 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.3.12 tcountervalreg contains the current value of the timer. note: the counter value is sp lit into two 8-bit register. 9.2.4 page 3: test 9.2.4.1 pagereg selects the register page. table 107. tcountervalreg (higher bits) regi ster (address 2eh); reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 tcounterval_hi access rights rrrrrrrr table 108. description of the higher tcountervalreg bits bit symbol description 7 to 0 tcounterval_hi current value of the timer, higher 8 bits. table 109. tcountervalreg (lower bits) register (address 2fh); reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 tcounterval_lo access rights rrrrrrrr table 110. description of lower tcountervalreg bits bit symbol description 7 to 0 tcounterval_lo current value of the timer, lower 8 bits. table 111. pagereg register (address 30h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 usepageselect 0 0 0 0 0 pageselect access rights r/w rfu rfu rfu rfu rfu r/w r/w
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 61 of 136 nxp semiconductors pn512 full nfc forum compliant solution table 112. description of pagereg bits bit symbol description 7 usepageselect set to logic 1, the value of pageselect is used as register address a5 and a4. the lsb-bits of the register address are defined by the address pins or the internal address latch, respectively. set to logic 0, the whole content of the internal address latch defines the register address. the address pins are used as described in section 10.1 ? automatic microcontroller interface detection ? . 6 to 2 - reserved for future use. 1 to 0 pageselect the value of pageselect is used only if usepageselect is set to logic 1. in this case, it specifies the register page (which is a5 and a4 of the register address).
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 62 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.4.2 testsel1reg general test signal configuration. 9.2.4.3 testsel2reg general test signal config uration and prbs control table 113. testsel1reg register (address 31h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 - - samclocksel samclkd1 tstbusbitsel access rights r/w r/w r/w r/w r/w r/w r/w r/w table 114. description of testsel1reg bits bit symbol description 7 to 6 - reserved for future use. 5 to 4 samclocksel defines the source for the 13.56 mhz sam clock value description 00 gnd- sam clock switched off 01 clock derived by the internal oscillator 10 internal uart clock 11 clock derived by the rf field 3 samclkd1 set to logic 1, the sam clock is delivered to d1. note: only possible if the 8bit parallel interface is not used. 2 to 0 tstbusbitsel select the testbus bit from the testbus to be propagated to sigout. table 115. testsel2reg register (address 32h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 tstbusflip prbs9 prbs15 testbussel access rights r/w r/w r/w r/w r/w r/w r/w r/w table 116. description of testsel2reg bits bit symbol description 7 tstbusflip if set to logic 1, the testbus is mapped to the parallel port by the following order: d4, d3, d2, d6, d5, d0, d1. see section 20 ? testsignals ? . 6 prbs9 starts and enables the prbs9 sequence according itu-to150. note: all relevant registers to transmit data have to be configured before entering prbs9 mode. note: the data transmission of the defined sequence is started by the send command. 5 prbs15 starts and enables the prbs15 sequence according itu-to150. note: all relevant registers to transmit data have to be configured before entering prbs15 mode. note: the data transmission of the defined sequence is started by the send command. 4 to 0 testbussel selects the testbus. see section 20 ? testsignals ?
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 63 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.4.4 testpinenreg enables the pin output driver on the 8-bit parallel bus. 9.2.4.5 testpinvaluereg defines the values for the 7-bit parallel port when it is used as i/o. table 117. testpinenreg register (address 33h); reset value: 80h, 10000000b 7 6 5 4 3 2 1 0 rs232lineen testpinen access rights r/w r/w r/w r/w r/w r/w r/w r/w table 118. description of testpinenreg bits bit symbol description 7 rs232lineen set to logic 0, the lines mx and dtrq for the serial uart are disabled. 6 to 0 testpinen enables the pin output dr iver on the 8-bit parallel interface. example: setting bit 0 to 1 enables d0 setting bit 5 to 1 enables d5 note: only valid if one of serial interfaces is used. if the spi interface is used only d0 to d4 can be used. if the serial uart interface is used and rs232lineen is set to logic 1 only d0 to d4 can be used. table 119. testpinvaluereg register (address 34h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 useio testpinvalue access rights r/w r/w r/w r/w r/w r/w r/w r/w table 120. description of testpinvaluereg bits bit symbol description 7 useio set to logic 1, this bit enables th e i/o functionality for the 7-bit parallel port in case one of the serial inte rfaces is used. the input/output behavior is defined by testpinen in register testpinenreg. the value for the output behavior is defin ed in the bits testpinval. note: if samclkd1 is set to logi c 1, d1 can not be used as i/o. 6 to 0 testpinvalue defines the value of the 7-bi t parallel port, when it is used as i/o. each output has to be enabled by the testpinen bits in register testpinenreg. note: reading the register indicates the actual status of the pins d6 - d0 if useio is set to logic 1. if useio is set to logic 0, the value of the register testpinvaluereg is read back.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 64 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.4.6 testbusreg shows the status of the internal testbus. 9.2.4.7 autotestreg controls the digital selftest. 9.2.4.8 versionreg shows the version. table 121. testbusreg re gister (address 35h) ; reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 testbus access rightsrrrrrrrr table 122. description of testbusreg bits bit symbol description 7 to 0 testbus shows the status of the intern al testbus. the testbus is selected by the register testsel2reg. see section 20 ? testsignals ? . table 123. autotestreg register (address 36h); reset value: 40h, 01000000b 7 6 5 4 3 2 1 0 0amprcveofso fadjust - selftest access rights rft r/w rfu rfu r/w r/w r/w r/w table 124. description of bits bit symbol description 7 - reserved for production tests. 6 amprcv if set to logic 1, the internal signal processing in the receiver chain is performed non-linear. this increases the operating distance in communication modes at 106 kbit. note: due to the non linearity the effect of the bits minlevel and colllevel in the register rxthreshholdreg are as well non linear. 5 eofsofadjust if set to logic 0 and the eofsofwidth is set to 1 will result in the maximum length of sof and eof according to iso/iec14443b if set to logic 0 and the eofsofwidth is set to 0 will result in the minimum length of sof and eof according to iso/iec14443b if this bit is set to 1 and the eofsofwidth bit is logic 1 will result in sof low = (11 etu ? 8 cycles)/fc sof high = (2 etu + 8 cycles)/fc eof low = (11 etu ? 8 cycles)/fc for the behaviour in version 1.0, see section 21 ? errata sheet ? on page 109 . 4 - reserved for future use. 3 to 0 selftest enables the digital self test. the selftest can be started by the selftest command in the command register. the selftest is enabled by 1001. note: for default operation the selftest has to be disabled by 0000.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 65 of 136 nxp semiconductors pn512 full nfc forum compliant solution table 125. versionreg register (add ress 37h); reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 version access rightsrrrrrrrr table 126. description of versionreg bits bit symbol description 7 to 0 version 80h indicates pn512 version 1.0, differences to version 2.0 are described within section 21 ? errata sheet ? on page 109 . 82h indicates pn512 version 2.0, whic h covers also the industrial version.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 66 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.4.9 analogtestreg controls the pins aux1 and aux2 table 127. analogtestreg register (add ress 38h); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 analogselaux1 analogselaux2 access rights r/w r/w r/w r/w r/w r/w r/w r/w table 128. description of analogtestreg bits bit symbol description 7 to 4 3to 0 analogselaux1 analogselaux2 controls the aux pin. note: all test signals are described in section 20 ? testsignals ? . value description 0000 tristate 0001 output of testdac1 (aux1), output of testdac2 (aux2) note: current output. the use of 1 k ? pull-down resistor on aux is recommended. 0010 testsignal corr1 note: current output. the use of 1 k ? pull-down resistor on aux is recommended. 0011 testsignal corr2 note: current output. the use of 1 k ? pull-down resistor on aux is recommended. 0100 testsignal minlevel note: current output. the use of 1 k ? pull-down resistor on aux is recommended. 0101 testsignal adc channel i note: current output. the use of 1 k ? pull-down resistor on aux is recommended. 0110 testsignal adc channel q note: current output. the use of 1 k ? pull-down resistor on aux is recommended. 0111 testsignal adc channel i combined with q note: current output. the use of 1 k ? pull-down resistor on aux is recommended. 1000 testsignal for production test note: current output. the use of 1 k ? pull-down resistor on aux is recommended. 1001 sam clock (13.56 mhz) 1010 high 1011 low 1100 txactive at 106 kbit: high during startbit, data bit, parity and crc. at 212 and 424 kbit: high during preamble, sync, data and crc. 1101 rxactive at 106 kbit: high during databit, parity and crc. at 212 and 424 kbit: high during data and crc. 1110 subcarrier detected 106 kbit: not applicable 212 and 424 kbit: high during last part of preamble, sync data and crc 1111 testbus-bit as defined by the tstbusbitsel in register testsel1reg.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 67 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.4.10 testdac1reg defines the testvalues for testdac1. 9.2.4.11 testdac2reg defines the testvalue for testdac2. 9.2.4.12 testadcreg shows the actual value of adc i and q channel. table 129. testdac1reg register (address 39h); reset value: xxh, 00xxxxxxb 7 6 5 4 3 2 1 0 0 0 testdac1 access rights rft rfu r/w r/w r/w r/w r/w r/w table 130. description of testdac1reg bits bit symbol description 7 - reserved for production tests. 6 - reserved for future use. 5 to 0 testdac1 defines the testvalue for testdac1. the output of the dac1 can be switched to aux1 by setting analogselaux1 to 0001 in register analogtestreg. table 131. testdac2reg register (address 3ah); reset value: xxh, 00xxxxxxb 7 6 5 4 3 2 1 0 0 0 testdac2 access rights rfu rfu r/w r/w r/w r/w r/w r/w table 132. description oftestdac2reg bits bit symbol description 7 to 6 - reserved for future use. 5 to 0 testdac2 defines the testvalue for testdac2. the output of the dac2 can be switched to aux2 by setting analogselaux2 to 0001 in register analogtestreg. table 133. testadcreg register (addre ss 3bh); reset value: xxh, xxxxxxxxb 7 6 5 4 3 2 1 0 adc_i adc_q access rights table 134. description of testadcreg bits bit symbol description 7 to 4 adc_i shows the actual value of adc i channel. 3 to 0 adc_q shows the actual value of adc q channel.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 68 of 136 nxp semiconductors pn512 full nfc forum compliant solution 9.2.4.13 rftreg 10. digital interfaces 10.1 automatic microcontroll er interface detection the pn512 supports direct interfacing of hosts using spi, i 2 c-bus or serial uart interfaces. the pn512 resets its interface and checks the current host interface type automatically after performing a power-on or hard reset. the pn512 identifies the host interface by sensing the logic levels on the control pins after the reset phase. this is done using a combination of fixed pin connections. table 141 shows the different connection configurations. table 135. rftreg register (address 3ch); reset value: ffh, 11111111b 7 6 5 4 3 2 1 0 11111111 access rights rft rft rft rft rft rft rft rft table 136. description of rftreg bits bit symbol description 7 to 0 - reserved for production tests. table 137. rftreg register (address 3dh, 3fh); reset value: 00h, 00000000b 7 6 5 4 3 2 1 0 00000000 access rights rft rft rft rft rft rft rft rft table 138. description of rftreg bits bit symbol description 7 to 0 - reserved for production tests. table 139. rftreg register (address 3eh); reset value: 03h, 00000011b 7 6 5 4 3 2 1 0 00000011 access rights rft rft rft rft rft rft rft rft table 140. description of rftreg bits bit symbol description 7 to 0 - reserved for production tests.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 69 of 136 nxp semiconductors pn512 full nfc forum compliant solution [1] only available in hvqfn 40. table 141. connection protocol for detecting different interface types pin interface type uart (input) spi (output) i 2 c-bus (i/o) sda rx nss sda i 2 c001 ea01ea d7 tx miso scl d6 mx mosi adr_0 d5 dtrq sck adr_1 d4 - - adr_2 d3 - - adr_3 d2 - - adr_4 d1 - - adr_5 table 142. connection scheme for detecting the different interface types pn512 parallel interface type serial interface types separated read/write strobe common read/write strobe pin dedicated address bus multiplexed address bus dedicated address bus multiplexed address bus uart spi i 2 c ale 1 ale 1 as rx nss sda a5 [1] a5 0 a5 0 000 a4 [1] a4 0 a4 0 000 a3 [1] a3 0 a3 0 000 a2 [1] a2 1 a2 1 000 a1a1 1 a1 1 001 a0a0 1 a0 0 01ea nrd [1] nrd nrd nds nds 1 1 1 nwr [1] nwr nwr rd/nwr rd/nwr 1 1 1 ncs [1] ncs ncs ncs ncs ncs ncs ncs d7 d7 d7 d7 d7 tx miso scl d6 d6 d6 d6 d6 mx mosi adr_0 d5 d5 ad5 d5 ad5 dtrq sck adr_1 d4 d4 ad4 d4 ad4 --adr_2 d3 d3 ad3 d3 ad3 --adr_3 d2 d2 ad2 d2 ad2 --adr_4 d1 d1 ad1 d1 ad1 --adr_5 d0 d0 ad0 d0 ad0 --adr_6 remark: overview on the pin behavior pin behavior input output in/out
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 70 of 136 nxp semiconductors pn512 full nfc forum compliant solution 10.2 serial peripheral interface a serial peripheral interface (spi compatible) is supported to enable high-speed communication to the host. the interface can handle data speeds up to 10 mbit/s. when communicating with a host, the pn512 acts as a slave, receiving data from the external host for register settings, sending and re ceiving data relevant for rf interface communication. an interface compatible with spi enables high-speed serial communication between the pn512 and a microcontroller. the implemented interface is in accordance with the spi standard. the timing specification is given in section 26.1 on page 117 . the pn512 acts as a slave during spi commu nication. the spi clock signal sck must be generated by the master. data communicatio n from the master to the slave uses the mosi line. the miso line is used to send data from the pn512 to the master. data bytes on both mosi and miso lines ar e sent with the msb first. data on both mosi and miso lines must be stable on the rising edge of the clock and can be changed on the falling edge. data is provided by the pn512 on the falling cloc k edge and is stable during the rising clock edge. 10.2.1 spi read data reading data using spi requires the byte order shown in table 143 to be used. it is possible to read out up to n-data bytes. the first byte sent defines both the mode and the address. [1] x = do not care. remark: the msb must be sent first. 10.2.2 spi write data to write data to the pn512 using spi requires the byte order shown in table 144 . it is possible to write up to n data bytes by only sending one address byte. fig 13. spi connection to host 001aan220 pn512 sck sck mosi mosi miso miso nss nss table 143. mosi and miso byte order line byte 0 byte 1 byte 2 to byte n byte n + 1 mosi address 0 address 1 address 2 ... address n 00 miso x [1] data 0 data 1 ... data n ? 1data n
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 71 of 136 nxp semiconductors pn512 full nfc forum compliant solution the first send byte defines both the mode and the address byte. [1] x = do not care. remark: the msb must be sent first. 10.2.3 spi address byte the address byte has to meet the following format. the msb of the first byte defines the mode used. to read data from the pn512 the msb is set to logic 1. to write data to the pn512 the msb must be set to logic 0. bits 6 to 1 define the address and the lsb is set to logic 0. 10.3 uart interface 10.3.1 connection to a host remark: signals dtrq and mx can be disabled by clearing testpinenreg register?s rs232lineen bit. 10.3.2 selectable uart transfer speeds the internal uart interface is compat ible with an rs232 serial interface. the default transfer speed is 9.6 kbd. to change the transfer speed, the host controller must write a value for the new transfer sp eed to the serialspeedreg register. bits br_t0[2:0] and br_t1[4:0] define the factors for setting the transfer speed in the serialspeedreg register. the br_t0[2:0] and br_t1[4:0] settings are described in ta b l e 1 0 . examples of different transfer speeds and the relevant register settings are given in ta b l e 11 . table 144. mosi and miso byte order line byte 0 byte 1 byte 2 to byte n byte n + 1 mosi address 0 data 0 data 1 ... data n ? 1data n miso x [1] x [1] x [1] ... x [1] x [1] table 145. address byte 0 register; address mosi 7 (msb) 6 5 4 3 2 1 0 (lsb) 1 = read 0 = write address 0 fig 14. uart connection to microcontrollers 001aan221 pn512 rx rx tx tx dtrq dtrq mx mx
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 72 of 136 nxp semiconductors pn512 full nfc forum compliant solution [1] the resulting transfer speed error is less than 1.5 % for all described transfer speeds. the selectable transfer speeds shown in table 11 are calculated according to the following equations: if br_t0[2:0] = 0: (1) if br_t0[2:0] > 0: (2) remark: transfer speeds above 1228.8 kbd are not supported. 10.3.3 uart framing table 146. br_t0 and br_t1 settings br_tn bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 br_t0 factor11248163264 br_t1 range 1 to 32 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 table 147. selectable uart transfer speeds transfer speed (kbd) serialspeedreg value transfer speed accuracy (%) [1] decimal hexadecimal 7.2 250 fah ? 0.25 9.6 235 ebh 0.32 14.4 218 dah ? 0.25 19.2 203 cbh 0.32 38.4 171 abh 0.32 57.6 154 9ah ? 0.25 115.2 122 7ah ? 0.25 128 116 74h ? 0.06 230.4 90 5ah ? 0.25 460.8 58 3ah ? 0.25 921.6 28 1ch 1.45 1228.8 21 15h 0.32 transfer speed 27.12 10 6 ? br _ t0 1 + ?? ------------------------------- - = transfer speed 27.12 10 6 ? br _ t1 33 + ?? 2 br_ t0 1 ? ?? ---------------------------------- - ----------------------------------- ?? ?? ?? ?? ?? = table 148. uart framing bit length value start 1-bit 0 data 8 bits data stop 1-bit 1
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 73 of 136 nxp semiconductors pn512 full nfc forum compliant solution remark: the lsb for data and address bytes must be sent first. no parity bit is used during transmission. read data: to read data using the uart interface, the flow shown in ta b l e 1 4 9 must be used. the first byte sent defines both the mode and the address. write data: to write data to the pn512 using the uart interface, the structure shown in table 150 must be used. the first byte sent defines both the mode and the address. table 149. read data byte order pin byte 0 byte 1 rx (pin 24) address - tx (pin 31) - data 0 (1) reserved. fig 15. uart read data timing diagram 001aak588 sa address rx tx mx dtrq a0 a1 a2 a3 a4 a5 (1) so sa d0 d1 d2 d3 d4 d5 d6 d7 so data r/w table 150. write data byte order pin byte 0 byte 1 rx (pin 24) address 0 data 0 tx (pin 31) - address 0
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 74 of 136 nxp semiconductors pn512 full nfc forum co mpliant solution remark: the data byte can be sent directly after the address byte on pin rx. address byte: the address byte has to meet the following format: (1) reserved. fig 16. uart write data timing diagram 001aak589 sa address rx tx mx dtrq a0 a1 a2 a3 a4 a5 (1) so sa d0 d1 d2 d3 d4 d5 d6 d7 so sa a0 a1 a2 a3 a4 a5 (1) so data address r/w r/w
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 75 of 136 nxp semiconductors pn512 full nfc forum compliant solution the msb of the first byte sets the mode used . to read data from the pn512, the msb is set to logic 1. to write data to the pn512 the msb is set to logic 0. bit 6 is reserved for future use, and bits 5 to 0 define the address; see table 151 . 10.4 i 2 c bus interface an i 2 c-bus (inter-ic) interface is supported to enable a low-cost, low pin count serial bus interface to the host. the i 2 c-bus interface is implemented according to nxp semiconductors? i 2 c-bus interface specification, rev. 2.1, january 2000 . the interface can only act in slave mode. ther efore the pn512 does not implement clock generation or access arbitration. the pn512 can act either as a slave receiver or slave transmitter in standard mode, fast mode and high-speed mode. sda is a bidirectional line connected to a posit ive supply voltage using a current source or a pull-up resistor. both sda and scl lines are set high when data is not transmitted. the pn512 has a 3-state output stage to perform the wired-and function. data on the i 2 c-bus can be transferred at data rates of up to 100 kbd in standard mode, up to 400 kbd in fast mode or up to 3.4 mbit/s in high-speed mode. if the i 2 c-bus interface is selected , spike suppression is activated on lines scl and sda as defined in the i 2 c-bus interface specification. see table 171 on page 117 for timing requirements. table 151. address byte 0 register; address mosi 7 (msb) 6 5 4 3 2 1 0 (lsb) 1 = read 0 = write reserved address fig 17. i 2 c-bus interface 001aan222 pn512 sda scl i2c ea adr_[5:0] pull-up network configuration wiring pull-up network microcontroller
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 76 of 136 nxp semiconductors pn512 full nfc forum compliant solution 10.4.1 data validity data on the sda line must be stable during the high clock period. the high or low state of the data line must only change when the clock signal on scl is low. 10.4.2 start and stop conditions to manage the data transfer on the i 2 c-bus, unique start (s) and stop (p) conditions are defined. ? a start condition is defined with a high-to-low transition on the sda line while scl is high. ? a stop condition is defined with a low-to-high transition on the sda line while scl is high. the i 2 c-bus master always generates the start and stop conditions. the bus is busy after the start condition. the bus is free aga in a certain time after the stop condition. the bus stays busy if a repeated start (sr) is generated instead of a stop condition. the start (s) and repeated start (sr) conditions are functionally identical. therefore, s is used as a generic term to represent both the start (s) and repeated start (sr) conditions. 10.4.3 byte format each byte must be followed by an acknowledge bit. data is transferred with the msb first; see figure 22 . the number of transmitted bytes during one data transfer is unrestricted but must meet the read /write cycle format. fig 18. bit transfer on the i 2 c-bus mbc621 data line stable; data valid change of data allowed sda scl fig 19. start and stop conditions mbc622 sda scl p stop condition sda scl s start condition
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 77 of 136 nxp semiconductors pn512 full nfc forum compliant solution 10.4.4 acknowledge an acknowledge must be sent at the end of one data byte. the acknowledge-related clock pulse is generated by the master. the transmitte r of data, either master or slave, releases the sda line (high) during the acknowledge clock pulse. the receiver pulls down the sda line during the acknowledge clock pulse so that it remains stable low during the high period of this clock pulse. the master can then generate either a stop (p) condition to stop the transfer or a repeated start (sr) condition to start a new transfer. a master-receiver indicates the end of data to the slave-transmitter by not generating an acknowledge on the last byte that was clocke d out by the slave. the slave-transmitter releases the data line to allow the master to generate a stop (p) or repeated start (sr) condition. fig 20. acknowledge on the i 2 c-bus mbc602 s start condition 9 8 2 1 clock pulse for acknowledgement not acknowledge acknowledge data output by transmitter data output by receiver scl from master fig 21. data transfer on the i 2 c-bus msc608 sr or p sda sr p scl stop or repeated start condition s or sr start or repeated start condition 1 2 3 - 8 9 ack 9 ack 78 12 msb acknowledgement signal from slave byte complete, interrupt within slave clock line held low while interrupts are serviced acknowledgement signal from receiver
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 78 of 136 nxp semiconductors pn512 full nfc forum compliant solution 10.4.5 7-bit addressing during the i 2 c-bus address procedure, the first byte after the start condition is used to determine which slave will be selected by the master. several address numbers are reserved. during device configuration, the designer must ensure that collisions with these reserv ed addresses cannot occur. check the i 2 c-bus specification for a complete list of reserved addresses. the i 2 c-bus address specification is dependent on the definition of pin ea. immediately after releasing pin nrstpd or after a powe r-on reset, the device defines the i 2 c-bus address according to pin ea. if pin ea is set low, the upper 4 bits of the device bus address are reserved by nxp semiconductors and set to 0101b for all pn512 devices. the remaining 3 bits (adr_0, adr_1, adr_2) of the slave address can be freely configured by the customer to prevent collisions with other i 2 c-bus devices. if pin ea is set high, adr_0 to adr_5 can be completely specified at the external pins according to table 141 on page 69 . adr_6 is always set to logic 0. in both modes, the external address coding is latched immediately after releasing the reset condition. further changes at the used pins are not taken into consideration. depending on the external wiring, the i 2 c-bus address pins can be used for test signal outputs. 10.4.6 register write access to write data from the host controller using the i 2 c-bus to a specific register in the pn512 the following frame format must be used. ? the first byte of a frame indicates the device address according to the i 2 c-bus rules. ? the second byte indicates the register address followed by up to n-data bytes. in one frame all data bytes are written to t he same register address. this enables fast fifo buffer access. the read/write (r/w ) bit is set to logic 0. fig 22. first byte following the start procedure 001aak591 slave address bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w msb lsb
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 79 of 136 nxp semiconductors pn512 full nfc forum compliant solution 10.4.7 register read access to read out data from a specific register address in the pn512, the host controller must use the following procedure: ? firstly, a write access to th e specific register address must be performed as indicated in the frame that follows ? the first byte of a frame indicates the device address according to the i 2 c-bus rules ? the second byte indicates the register address. no data bytes are added ? the read/write bit is 0 after the write access, read a ccess can start. the host sends the device address of the pn512. in response, the pn512 sends the cont ent of the read access register. in one frame all data bytes can be read from the same register address. this enables fast fifo buffer access or register polling. the read/write (r/w) bit is set to logic 1. fig 23. register read and write access 001aak592 sa 0 0 i 2 c-bus slave address [a7:a0] joiner register address [a5:a0] write cycle 0 (w) a data [7:0] [0:n] [0:n] [0:n] a p sa 0 0 i 2 c-bus slave address [a7:a0] joiner register address [a5:a0] read cycle optional, if the previous access was on the same register address 0 (w) a p p s s start condition p stop condition a acknowledge a not acknowledge w write cycle r read cycle a i 2 c-bus slave address [a7:a0] sent by master sent by slave data [7:0] 1 (r) a data [7:0] a
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 80 of 136 nxp semiconductors pn512 full nfc forum compliant solution 10.4.8 high-speed mode in high-speed mode (hs mode), the device can tran sfer information at data rates of up to 3.4 mbit/s, while remaining fully downward-co mpatible with fast or standard mode (f/s mode) for bidirectional communication in a mixed-speed bus system. 10.4.9 high-speed transfer to achieve data rates of up to 3.4 mbit/s the following improvements have been made to i 2 c-bus operation. ? the inputs of the device in hs mode incorpor ate spike suppression, a schmitt trigger on the sda and scl inputs and different timing constants when compared to f/s mode ? the output buffers of the device in hs mode incorpor ate slope contro l of the falling edges of the sda and scl signals with different fall times compared to f/s mode 10.4.10 serial data transfer format in hs mode the hs mode serial data transfer format meets the standard mode i 2 c-bus specification. hs mode can only start after all of the followin g conditions (all of wh ich are in f/s mode): 1. start condition (s) 2. 8-bit master code (00001xxxb) 3. not-acknowledge bit (a ) when hs mode starts, the active master sends a repeated start condition (sr) followed by a 7-bit slave address with a r/w bit address and receives an acknowledge bit (a) from the selected pn512. data transfer continues in hs mode after the next repeated start (sr), only switching back to f/s mode after a stop condition (p). to reduce the overhead of the master code, a master links a number of hs mode transfers, separated by repeated start conditions (sr). fig 24. i 2 c-bus hs mode protocol switch f/s mode hs mode (current-source for scl high enabled) f/s mode 001aak749 a a a/a data (n-bytes + a) s r/w master code sr slave address hs mode continues sr slave address p
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 81 of 136 nxp semiconductors pn512 full nfc forum compliant solution fig 25. i 2 c-bus hs mode protocol frame msc618 8-bit master code 0000 1xxx a t h t 1 s f/s mode hs mode if p then f/s mode if sr (dotted lines) then hs mode 16789 6789 1 1 2 to 5 2 to 5 2 to 5 67 89 sda high scl high sda high scl high t h t fs sr sr p n + (8-bit data + a/a) 7-bit sla r/w a = master current source pull-up = resistor pull-up
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 82 of 136 nxp semiconductors pn512 full nfc forum compliant solution 10.4.11 switching between f/s mode and hs mode after reset and initializat ion, the pn512 is in fast mode (which is in effect f/s mode as fast mode is downward-c ompatible with standard mode). the connected pn512 recognizes the ?s 00001xxx a? sequence and s witches its internal circuitry from the fast mode setting to the hs mode setting. the following actions are taken: 1. adapt the sda and scl input filters accord ing to the spike suppression requirement in hs mode. 2. adapt the slope control of the sda output stages. it is possible for system configurations that do not have other i 2 c-bus devices involved in the communication to switch to hs mode permanently. this is implemented by setting status2reg register?s i 2 cforcehs bit to logic 1. in permanent hs mode, the master code is not required to be sent. this is not defin ed in the specification and must only be used when no other devices are connected on the bus. in addition, spikes on the i 2 c-bus lines must be avoided because of the reduced spike suppression. 10.4.12 pn512 at lower speed modes pn512 is fully downward-compatible and can be connected to an f/s mode i 2 c-bus system. the device stays in f/s mode and communicates at f/s mode speeds because a master code is not transmitted in this configuration. 11. 8-bit parallel interface the pn512 supports two different types of 8-bit parallel interfaces, intel and motorola compatible modes. 11.1 overview of supported host controller interfaces the pn512 supports direct interfacing to various ? -controllers. the following table shows the parallel interface types supported by the pn512. table 152. supported interface types supported interface types bus separated address and data bus multiplexed address and data bus separated read and write strobes (intel compatible) control nrd, nwr, ncs nrd, nwr, ncs, ale address a0 ? a3 [..a5*] ad0 ? ad7 data d0 ? d7 ad0 ? ad7 multiplexed read and write strobe (motorola compatible) control r/nw, nds, ncs r/nw, nds, ncs, as address a0 ? a3 [..a5*] ad0 ? ad7 data d0 ? d7 ad0 ? ad7
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 83 of 136 nxp semiconductors pn512 full nfc forum compliant solution 11.2 separated read/write strobe for timing requirements refer to section 26.2 ? 8-bit parallel interface timing ? . 11.3 common read/write strobe for timing requirements refer to section 26.2 ? 8-bit parallel interface timing ? fig 26. connection to host controller with separated read/write strobes 001aan223 pn512 ncs a0...a3[a5*] d0...d7 a0 a1 a2 a3 a4* a5* address bus (a0...a3[a5*]) ale nrd nwr address decoder data bus (d0...d7) high not data strobe (nrd) not write (nwr) address bus remark: *depending on the package type. multiplexed address/data ad0...ad7) pn512 ncs d0...d7 ale nrd nwr address decoder low low high high high low address latch enable (ale) not read strobe (nrd) not write (nwr) non multiplexed address fig 27. connection to host controller with common read/write strobes 001aan224 pn512 ncs a0...a3[a5*] d0...d7 a0 a1 a2 a3 a4* a5* address bus (a0...a3[a5*]) ale nrd nwr address decoder data bus (d0...d7) high not data strobe (nds) read not write (rd/nwr) address bus remark: *depending on the package type. multiplexed address/data ad0...ad7) pn512 ncs d0...d7 ale nrd nwr address decoder low low high high low low address strobe (as) not data strobe (nds) read not write (rd/nwr) non multiplexed address
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 84 of 136 nxp semiconductors pn512 full nfc forum compliant solution 12. analog interface and contactless uart 12.1 general the integrated contactless uart supports the external host online with framing and error checking of the protocol requirements up to 848 kbd. an external circuit can be connected to the communication interface pins mfin and mfout to modulate and demodulate the data. the contactless uart handles the protocol requirements for the communication protocols in cooperation with the host. protoc ol handling generates bit and byte-oriented framing. in addition, it handles error detection such as parity and crc, based on the various supported contactless communication protocols. remark: the size and tuning of the antenna and the power supply voltage have an important impact on the achievable operating distance. 12.2 tx driver the signal on pins tx1 and tx2 is the 13.56 mhz energy carrier modulated by an envelope signal. it can be used to drive an antenna di rectly using a few passive components for matching and filtering; see section 15 on page 96 . the signal on pins tx1 and tx2 can be configured using the txcontrolreg register; see section 9.2.2.5 on page 40 . the modulation index can be set by adjusting the impedance of the drivers. the impedance of the p-driver can be conf igured using registers cwgspreg and modgspreg. the impedance of the n-driver can be configured using the gsnreg register. the modulation index also depends on the antenna design and tuning. the txmodereg and txselreg registers control the data rate and framing during transmission and the antenna driver setting to support the different requirements at the different modes and transfer speeds. [1] x = do not care. table 153. register and bit settings controlling the signal on pin tx1 bit tx1rfen bit force 100ask bit invtx1rfon bit invtx1rfoff envelope pin tx1 gspmos gsnmos remarks 0x [1] x [1] x [1] x [1] x [1] cwgsnoff cwgsnoff not specified if rf is switched off 100 x [1] 0 rf pmod nmod 100 % ask: pin tx1 pulled to logic 0, independent of the invtx1rfoff bit 1rfpcwncw 01 x [1] 0 rf pmod nmod 1rfpcwncw 11 x [1] 0 0 pmod nmod 1rf_npcwncw
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 85 of 136 nxp semiconductors pn512 full nfc forum compliant solution [1] x = do not care. the following abbreviations have been used in table 153 and table 154 : ? rf: 13.56 mhz clock derived from 27.12 mhz quartz crystal oscillator divided by 2 ? rf_n: inverted 13.56 mhz clock ? gspmos: conductance, configuration of the pmos array ? gsnmos: conductance, configuration of the nmos array ? pcw: pmos conductance value for continuous wave defined by the cwgspreg register ? pmod: pmos conductance value for modulation defined by the modgspreg register ? ncw: nmos conductance value for continuous wave defined by the gsnreg register?s cwgsn[3:0] bits ? nmod: nmos conductance value for modulation defined by the gsnreg register?s modgsn[3:0] bits ? x = do not care. remark: if only one driver is switched on, t he values for cwgspreg, modgspreg and gsnreg registers are used for both drivers. 12.3 rf level detector the rf level detector is inte grated to fulfill nf cip1 protocol requ irements (e.g. rf collision avoidance). fu rthermore the rf level detector can be used to wake up the pn512 and to generate an interrupt. table 154. register and bit settings controlling the signal on pin tx2 bit tx1rfen bit force 100ask bit tx2cw bit invtx2rfon bit invtx2rfoff en- velope pin tx2 gspmos gsnmos remarks 0x [1] x [1] x [1] x [1] x [1] x [1] cwgsnoff cwgsnoff not specified if rf is switched off 1000 x [1] 0 rf pmod nmod - 1rfpcwncw 1x [1] 0 rf_n pmod nmod 1rf_npcwncw 10 x [1] x [1] rf pcw ncw conductance always cw for the tx2cw bit 1x [1] x [1] rf_n pcw ncw 100 x [1] 0 0 pmod nmod 100 % ask: pin tx2 pulled to logic 0 (independent of the invtx2rfon/in vtx2rfoff bits) 1rfpcwncw 1x [1] 0 0 pmod nmod 1rf_npcwncw 10 x [1] x [1] rf pcw ncw 1x [1] x [1] rf_n pcw ncw
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 86 of 136 nxp semiconductors pn512 full nfc forum compliant solution the sensitivity of the rf level detector is adju stable in a 4-bit range using the bits rflevel in register rfcfgreg. the s ensitivity itself depends on the antenna configuration and tuning. possible sensitivity levels at the rx pin are listed in the table 154 . to increase the sensitivity of the rf level de tector an amplifier can be activated by setting the bit rflevelamp in register rfcfgreg to 1. remark: during soft power-down mode the rf leve l detector amplifie r is automatically switched off to ensure that the power consumption is less than 10 ? aat3v. remark: with typical antennas lower sensitivit y levels can provoke misleading results because of intrinsic noise in the environment. note: it is recommended to use the bit rflevelamp only with higher rf level settings. 12.4 data mode detector the data mode detector gives th e possibility to detect receiv ed signals according to the iso/iec 14443a/mifare, felica or nfcip-1 schemes at the standard transfer speeds for 106 kbit, 212 kbit and 424 kbit in order to prepare the internal receiver in a fast and convenient way for further data processing. the data mode detector can only be activated by the autocoll command. the mode detector resets, when no extern al rf field is detected by the rf level detector. the data mode detector could be switched off during the autocoll command by setting bit modedetoff in register modereg to 1. table 155. setting of the bits rflevel in regi ster rfcfgreg (rflevel amplifier deactivated) v~rx [vpp] rflevel ~2 1111 ~1.4 1110 ~0.99 1101 ~0.69 1100 ~0.49 1011 ~0.35 1010 ~0.24 1001 ~0.17 1000 ~0.12 0111 ~0.083 0110 ~0.058 0101 ~0.041 0100 ~0.029 0011 ~0.020 0010 ~0.014 0001 ~0.010 0000
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 87 of 136 nxp semiconductors pn512 full nfc forum compliant solution fig 28. data mode detector 001aan225 host interfaces receiver i/q demodulator registers registersetting for the detected mode data mode detector rx pn512 nfc @ 106 kbit/s nfc @ 212 kbit/s nfc @ 424 kbit/s
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 88 of 136 nxp semiconductors pn512 full nfc forum compliant solution 12.5 serial data switch two main blocks are implemented in the pn512. the digital block comprises the state machines, encoder/decoder logic. the analog block comprises the modulator and antenna drivers, the receiver and amplifiers . the interface between these two blocks can be configured in the way, that the interfacin g signals may be routed to the pins sigin and sigout. sigin is capable of processing di gital nfc signals on transfer speeds above 424 kbit. the sigout pin can provide a digital signal that can be used with an additional external circuit to generate transfer spee ds above 424 kbit (including 106, 212 and 424 kbit). furthermore sigout and si gin can be used to enable the s 2 c interface in the card sam mode to emulate a card functionality with the pn512 and a secure ic. a secure ic can be the smart mx smart card controller ic. this topology allows the analog block of the pn512 to be connected to the digital block of another device. the serial signal switch is controll ed by the txselreg and rxselreg registers. figure 29 shows the serial data switch for tx1 and tx2. 12.6 s 2 c interface support the s 2 c provides the possibility to directly connect a secure ic to the pn512 in order act as a contactless smart card ic via the pn512. the interfacing signals can be routed to the pins sigin and sigout. sigin can receiv e either a digital felica or digitized iso/iec 14443a signal sent by the secure ic. the sigout pin can provide a digital signal and a clock to communicate to the secure ic. a secure ic can be the smart card ic provided by nxp semiconductors. the pn512 has an extr a supply pin (svdd and pvss as gr ound line) for the sigin and sigout pads. figure 31 outlines possible ways of communica tions via the pn512 to the secure ic. fig 29. serial data switch for tx1 and tx2 001aak593 internal coder invert if invmod = 1 driversel[1:0] 00 01 10 11 3-state to driver tx1 and tx2 0 = impedance = modulated 1 = impedance = cw 1 invert if polmfin = 0 mfin envelope
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 89 of 136 nxp semiconductors pn512 full nfc forum compliant solution configured in the secure access mode the ho st controller can directly communicate to the secure ic via sigin/sigout. in this mode the pn512 generates the rf clock and performs the communication on the sigout line. to enable the secure access module mode the clock has to be derived by the in ternal oscillator of the pn512, see bits samclocksel in register testsel1reg. configured in contactless card mode the secure ic can act as contactless smart card ic via the pn512. in this mode the signal on the sigout line is provided by the external rf field of the external reader/writer. to enable the contactless card mode the clock derived by the external rf field has to be used. the configuration of the s 2 c interface differs for the felica and mifare scheme as outlined in the following chapters. fig 30. communication flows using the s 2 c interface 001aan226 contactless uart serial signal switch fifo and state machine spi, i 2 c, serial uart host controller pn512 secure core ic sigout sigin 2. contactless card mode 1. secure access module (sam) mode
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 90 of 136 nxp semiconductors pn512 full nfc forum compliant solution 12.6.1 signal shape for felica s 2 c interface support the felica secure ic is connected to the pn512 via the pins sigout and sigin. the signal at sigout contains the informat ion of the 13.56 mhz cl ock and the digitized demodulated signal. the clock and the demodulated signal is combined by using the logical function exclusive or. to ensure that this signal is free of spikes, the demodulated signal is digitally filtered first. the time delay for that digital filtering is in the range of one bit length. the demodulated signal changes only at a po sitive edge of the clock. the register txselreg controls the setting at sigout. the answer of the felica sam is transferred fr om sigin directly to the antenna driver. the modulation is done according to the register settings of the antenna drivers. the clock is switched to aux1 or aux2 (see analogselaux). note: a high signal on aux1 and aux2 has the same level as avdd. a high signal at sigout has the same level as svdd. alternatively it is poss ible to use pin d0 as clock output if a serial interface is used. the high level at d0 is the same as pvdd. note: the signal on the antenna is shown in principle only. in rea lity the waveform is sinusoidal. fig 31. signal shape for sigout in felica card sam mode fig 32. signal shape for sigin in sam mode 001aan227 clock signal on sigin signal on antenna 001aan228 clock demodulated signal signal on sigout
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 91 of 136 nxp semiconductors pn512 full nfc forum compliant solution 12.6.2 waveform shape for iso/iec 14443a and mifare s 2 c support the secure ic, e.g. the smart mx is connected to the pn512 via the pins sigout and sigin. the waveform shape at sigout is a digita l 13.56 mhz miller coded signal with levels between pvss and pvdd derived out of the external 13 .56 mhz carrier si gnal in case of the contactless card mode or internally generated in terms of secure access mode. the register txselreg controls the setting at sigout. note: the clock settings fo r the secure access mode and the contactless card mode differ, refer to the description of the bits samclocksel in register testsel1reg. the signal at sigin is a digital manchester c oded signal according to the requirements of the iso/iec 14443a with the subcarrier frequency of 847.5 khz generated by the secure ic. fig 33. signal shape for sigout in mifare card sam mode fig 34. signal shape for sigin in mifare card sam mode 001aan229 1 0 bit value rf signal on antenna signal on sigout 01001 001aan230 0 1 0 00 11 bit value signal on antenna signal on sigin
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 92 of 136 nxp semiconductors pn512 full nfc forum compliant solution 12.7 hardware support for felica and nfc polling 12.7.1 polling sequence functionality for initiator 1. timer: the pn512 has a timer, which can be programmed in a way that it generates an interrupt at the end of each timeslot, or if required an interrupt is generated at the end of the last timeslot. 2. the receiver can be configured in a way to receive continuously. in this mode it can receive any number of packets. the receiv er is ready to receive the next packet directly after the last packet has been rece ived. this mode is active by setting the bit rxmultiple in register rxmodereg to 1 and has to be stopped by software. 3. the internal uart adds one byte to the end of every received packet, before it is transferred into the fifo-buffer. this byte indicates if the received byte packet is correct (see register errreg). the first byte of each packet contains the length byte of the packet. 4. the length of one packet is 18 or 20 bytes (+ 1 byte error-info). the fifo has a length of 64 bytes. this means three packets can be stored in the fifo at the same time. if more than three packets are expe cted, the host controller has to empty the fifo, before the fifo is filled completely. in case of a fifo -overflow data is lost (see bit bufferovfl in register errorreg). 12.7.2 polling sequence functionality for target 1. the host controller has to configure the pn512 with t he correct polling response parameters for the polling command. 2. to activate the automatic polling in targ et mode, the autocoll command has to be activated. 3. the pn512 receives the polling command send out by an initiator and answers with the polling response. the timeslot is select ed automatically (the timeslot itself is randomly generated , but in the range 0 to tsn, which is defined by the polling command). the pn512 compares the system code, stored in byte 17 and 18 of the config command with the system code received by the polling command of an initiator. if the system code is equal, the pn512 answers according to the configured polling response. th e system code ff (hex) acts as a wildcard for the system code bytes, i.e. a target of a system code 12 34 (hex) answers to th e polling command with one of the following system codes 1234 (hex ), 12ff (hex), ff34 (hex) or ffff (hex). if the system code does not match no answer is sent back by the pn512. if a valid command is received by the pn 512, which is not a polling command, no answer is sent back and the command auto coll is stopped. the received packet is stored in the fifo.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 93 of 136 nxp semiconductors pn512 full nfc forum compliant solution 12.7.3 additional hardware support for felica and nfc additionally to the polling sequ ence support for the felica mo de, the pn512 supports the check of the len-byte. the received len-byte in accordance to the registers felnfc1reg and felnfc2reg: datalenmin in register felnfc1reg defines the minimum length of the accepted packet length. this register is six bit long. ea ch bit represents a length of four bytes. datalenmax in register felnfc2reg defines the maximum length of the accepted package. this register is six bit long. each bit represents a length of four bytes. if set to logic 1 this limit is ignored. if the length is not in the supposed range, the packet is not transferred to the fifo and receiving is kept active. example 1: ? datalenmin = 4 ? the length shall be greater or equal 16. ? datalenmax = 5 ? the length shall be smaller than 20. valid area: 16, 17, 18, 19 example 2: ? datalenmin = 9 ? the length shall be greater or equal 36. ? datalenmax = 0 ? the length shall be smaller than 256. valid area: 36 to 255 12.7.4 crc coprocessor the following crc coprocessor parameters can be configured: ? the crc preset value can be either 000 0h, 6363h, a671h or ffffh depending on the modereg register?s crcpreset[1:0] bits setting ? the crc polynomial for the 16-bit crc is fixed to x 16 +x 12 +x 5 +1 ? the crcresultreg register indicates the result of the crc calculation. this register is split into two 8-bit registers representing the higher and lower bytes. ? the modereg register?s msbfirst bit indica tes that data will be loaded with the msb first. table 156. crc coprocessor parameters parameter value crc register length 16-bit crc crc algorithm algorithm according to iso/iec 14443 a and itu-t crc preset value 0000h, 6363h, a671h or ffffh depending on the setting of the modereg register?s crcpreset[1:0] bits
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 94 of 136 nxp semiconductors pn512 full nfc forum compliant solution 13. fifo buffer an 8 ? 64 bit fifo buffer is used in the pn512. it buffers the input and output data stream between the host and the pn512?s internal st ate machine. this ma kes it possible to manage data streams up to 64 bytes long without the need to take timing constraints into account. 13.1 accessing the fifo buffer the fifo buffer input and output data bus is connected to the fifodatareg register. writing to this register stores one byte in the fifo buffer and increments the internal fifo buffer write pointer. reading fr om this register shows the fifo buffer contents stored in the fifo buffer read pointer and decrements the fifo buffer read pointer. the distance between the write and read pointer can be obtained by reading the fifolevelreg register. when the microcontroller starts a command, the pn512 can, while the command is in progress, access the fifo buffer according to that command. only one fifo buffer has been implemented which can be used for input and output. the microcontroller must ensure that there are not any unintentional fifo buffer accesses. 13.2 controlling the fifo buffer the fifo buffer pointers can be reset by se tting fifolevelreg register?s flushbuffer bit to logic 1. consequently, the fifolevel[6:0] bits are all set to logic 0 and the errorreg register?s bufferovfl bit is cleared. the by tes stored in the fifo buffer are no longer accessible allowing the fi fo buffer to be filled with anothe r 64 bytes. 13.3 fifo buffer status information the host can get the following fifo buffer status information: ? number of bytes stored in the fifo buff er: fifolevelreg register?s fifolevel[6:0] ? fifo buffer almost full warning: status1reg register?s hialert bit ? fifo buffer almost empty warning: status1reg register?s loalert bit ? fifo buffer overflow warning: errorreg re gister?s bufferovfl bit. the bufferovfl bit can only be cleared by setting the fifo levelreg register?s flushbuffer bit. the pn512 can generate an interrupt signal when: ? comienreg register?s loalertien bit is set to logic 1. it activates pin irq when status1reg register?s loalert bit changes to logic 1. ? comienreg register?s hialertien bit is set to logic 1. it activates pin irq when status1reg register?s hialert bit changes to logic 1. if the maximum number of waterlevel bytes (as set in the waterlevelreg register) or less are stored in the fifo buffer, the hialert bit is set to logic 1. it is generated according to equation 3 : (3) hialert 64 fifolength ? ?? waterlevel ? =
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 95 of 136 nxp semiconductors pn512 full nfc forum compliant solution if the number of waterlevel bytes (as set in the waterlevelreg register) or less are stored in the fifo buffer, the loalert bit is set to logic 1. it is generated according to equation 4 : (4) 14. interrupt request system the pn512 indicates certain events by settin g the status1reg register?s irq bit and, if activated, by pin irq. the signal on pin irq can be used to interrupt the host using its interrupt handling ca pabilities. this allows the implemen tation of efficient host software. 14.1 interrupt sources overview table 157 shows the available interrupt bits, the corresponding source and the condition for its activation. the comirqreg register?s time rirq interrupt bit indicates an interrupt set by the timer unit which is set when the timer decrements from 1 to 0. the comirqreg register?s txirq bit indicates th at the transmitter has finished. if the state changes from sending data to transmitting the end of the frame pattern, the transmitter unit automatically sets th e interrupt bit. the crc copr ocessor sets the divirqreg register?s crcirq bit after processing all the fifo buffer data which is indicated by crcready bit = 1. the comirqreg register?s rxirq bit indicates an interrupt when the end of the received data is detected. the comirqreg register?s idleirq bit is set if a command finishes and the command[3:0] value in the commandr eg register changes to idle (see table 158 on page 101 ). the comirqreg register?s hialertirq bit is set to logic 1 when the status1reg register?s hialert bit is set to logic 1 which means that the fifo buffer has reached the level indicated by the waterlevel[5:0] bits. the comirqreg register?s loalertirq bit is set to logic 1 when the status1reg register?s loalert bit is set to logic 1 which means that the fifo buffer has reached the level indicated by the waterlevel[5:0] bits. the comirqreg register?s errirq bit indicates an error detected by the contactless uart during send or receive. this is indicated when any bit is set to logic 1 in register errorreg. loalert fifolength waterlevel ? = table 157. interrupt sources interrupt flag interrupt source trigger action timerirq timer unit the timer counts from 1 to 0 txirq transmitter a transmitted data stream ends crcirq crc coprocessor all data from the fifo buffer has been processed rxirq receiver a received data stream ends idleirq comirqreg register command execution finishes hialertirq fifo buffer the fifo buffer is almost full loalertirq fifo buffer the fifo buffer is almost empty errirq contactless uart an error is detected
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 96 of 136 nxp semiconductors pn512 full nfc forum compliant solution 15. timer unit a timer unit is implemented in the pn512. the external host controller may use this timer to manage timing relevant tasks. the timer unit may be used in one of the following configurations: ? time-out counter ? watch-dog counter ? stop watch ? programmable one-shot ? periodical trigger the timer unit can be used to measure the time interval between two events or to indicate that a specific event occurred after a specific time. the timer can be triggered by events which will be explained in the following, but the timer itself does not influence any internal event (e.g. a time-out during data reception does not influence the reception process automatically). furthermore, several timer rela ted bits are set and these bits can be used to generate an interrupt. timer the timer has an input clock of 13.56 mhz (derived from the 27.12 mhz quartz). the timer consists of two stages: 1 prescaler and 1 counter. the prescaler is a 12-bit counter. the reload value for tprescaler can be defined between 0 and 4095 in register tmodereg and tprescalerreg. the reload value for the counter is defined by 16 bits in a range of 0 to 65535 in the register treloadreg. the current value of the timer is indi cated by the register tcountervalreg. if the counter reaches 0 an inte rrupt will be generated automatically indicated by setting the timerirq bit in the register commonirqreg. if enabled, this event can be indicated on the irq line. the bit timerirq can be set and reset by the host controller. depending on the configuration the timer will stop at 0 or restart with the value from register treloadreg. the status of the timer is indicated by bit trunning in register status1reg. the timer can be manually started by tstartnow in register controlreg or manually stopped by tstopnow in register controlreg. furthermore the timer can be activated auto matically by setting the bit tauto in the register tmodereg to fu lfill dedicated protocol r equirements automatically. the time delay of a timer stage is the reload value +1. the definition of total time is: t = ((tp rescaler*2+1)*treload+1)/13.56mhz or if tprescaleeven bit is set: t = ((tp rescaler*2+2)*trel oad+1)/13.56mhz maximum time: tprescaler = 4095,treloadval = 65535 => (2*4095 +2)*65536/13.56 mhz = 39.59 s example:
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 97 of 136 nxp semiconductors pn512 full nfc forum compliant solution to indicate 25 us it is required to count 339 clock cycles. this means the value for tprescaler has to be set to tprescaler = 169.t he timer has now an input clock of 25 us. the timer can count up to 65535 timeslots of each 25 ? s. for the behaviour in version 1.0, see section 21 ? errata sheet ? on page 109 .
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 98 of 136 nxp semiconductors pn512 full nfc forum compliant solution 16. power reduction modes 16.1 hard power-down hard power-down is enabled wh en pin nrstpd is low. this tu rns off all internal current sinks including the oscillator. all digital input buffers are separated from the input pins and clamped internally (except pin nrstpd). the out put pins are frozen at either a high or low level. 16.2 soft power-down mode soft power-down mode is entered immediately after the commandreg register?s powerdown bit is set to logic 1. all internal current sinks are switched off, including the oscillator buffer. however, the digital input bu ffers are not separated from the input pins and keep their functionality. the digita l output pins do not change their state. during soft power-down, all re gister values, the fifo buffer content and the configuration keep their current contents. after setting the powerdown bit to logic 0, it takes 1024 clocks until the soft power-down mode is exited indicated by the powerdown bi t. setting it to logic 0 does not immediately clear it. it is cleared automatically by the pn512 when soft power-down mode is exited. remark: if the internal oscillator is us ed, you must take into acco unt that it is supplied by pin avdd and it will take a certain time (t osc ) until the oscillator is stable and the clock cycles can be detected by the internal logic. it is recommended for the serial uart, to first send the value 55h to the pn51 2. the oscillator must be stab le for further access to the registers. to ensure this, perform a read acce ss to address 0 until the pn512 answers to the last read command with the register cont ent of address 0. this indicates that the pn512 is ready. 16.3 transmitter power-down mode the transmitter power-down mode switches of f the internal antenna drivers thereby, turning off the rf field. transmitter power-down mode is entered by setting either the txcontrolreg register?s tx1rfen bit or tx2rfen bit to logic 0.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 99 of 136 nxp semiconductors pn512 full nfc forum compliant solution 17. oscillator circuitry the clock applied to the pn512 provides a time basis for the synchronous system?s encoder and decoder. the stabilit y of the clock frequen cy, therefore, is an important factor for correct operation. to obtain optimum perf ormance, clock jitter must be reduced as much as possible. this is best achieved using the internal oscillator buffer with the recommended circuitry. if an external clock source is used, the clock signal must be applied to pin oscin. in this case, special care must be ta ken with the clock duty cycle and clock jitter and the clock quality must be verified. 18. reset and oscill ator start-up time 18.1 reset timing requirements the reset signal is filtered by a hysteresis ci rcuit and a spike filter before it enters the digital circuit. the spike filter rejects signals shorter than 10 ns. in order to perform a reset, the signal must be low for at least 100 ns. 18.2 oscillator start-up time if the pn512 has been set to a power-down mode or is powered by a v ddx supply, the start-up time for the pn512 depend s on the oscillator used and is shown in figure 36 . the time (t startup ) is the start-up time of the crystal o scillator circuit. the crystal oscillator start-up time is defined by the crystal. the time (t d ) is the internal delay time of the pn512 when the clock signal is stable before the pn512 can be addressed. the delay time is calculated by: (5) the time (t osc ) is the sum of t d and t startup . fig 35. quartz crystal connection 001aan231 pn512 27.12 mhz oscout oscin t d 1024 27 ? s ------------- - 37.74 ? s ==
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 100 of 136 nxp semiconductors pn512 full nfc forum compliant solution 19. pn512 command set the pn512 operation is determined by a state machine capable of performing a set of commands. a command is executed by writing a command code (see table 158 ) to the commandreg register. arguments and/or data necessary to process a command are exchanged via the fifo buffer. 19.1 general description the pn512 operation is determined by a state machine capable of performing a set of commands. a command is executed by writing a command code (see table 158 ) to the commandreg register. arguments and/or data necessary to process a command are exchanged via the fifo buffer. 19.2 general behavior ? each command that needs a data bit stream (or data byte stream) as an input immediately processes any data in the fifo buffer. an exception to this rule is the transceive command. using this comma nd, transmission is started with the bitframingreg register?s startsend bit. ? each command that needs a certain number of arguments, starts processing only when it has received the correct number of arguments from the fifo buffer. ? the fifo buffer is not automatically cleared when commands start. this makes it possible to write command arguments and/or the data bytes to the fifo buffer and then start the command. ? each command can be interrupted by the host writing a new command code to the commandreg register, for example, the idle command. fig 36. oscillator start-up time 001aak596 t startup t d t osc t device activation oscillator clock stable clock ready
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 101 of 136 nxp semiconductors pn512 full nfc forum compliant solution 19.3 pn512 command overview 19.3.1 pn512 command descriptions 19.3.1.1 idle places the pn512 in idle mode. the idle command also terminates itself. 19.3.1.2 config command to use the automatic mifare anticollision, felica polling and nfcid3 the data used for these transactions has to be stored internally. all the following data have to be written to the fifo in this order: sens_res (2 bytes); in order byte 0, byte 1 nfcid1 (3 bytes); in order byte 0, byte 1, byte 2; the first nfcid1 byte is fixed to 08h and the check byte is calc ulated automatically. sel_res (1 byte) polling response (2 bytes (shall be 01h, feh) + 6 bytes nfcid2 + 8 bytes pad + 2 bytes system code) nfcid3 (1 byte) in total 25 bytes are transferred into an internal buffer. the complete nfcid3 is 10 by tes long and consists of the 3 nfcid1 bytes, the 6 nfcid2 bytes and the one nfcid3 byte which are listed above. to read out this configuration the command config with an empty fifo-buffer has to be started. in this case the 25 bytes are transferred from the internal buffer to the fifo. table 158. command overview command command code action idle 0000 no action, cancels current command execution configure 0001 configures the pn512 for felica, mifare and nfcip-1 communication generate randomid 0010 generates a 10-byte random id number calccrc 0011 activates the crc coproc essor or performs a self test transmit 0100 transmits data from the fifo buffer nocmdchange 0111 no command change, can be used to modify the commandreg register bits without affecting the command, for example, the powerdown bit receive 1000 activates the receiver circuits transceive 1100 transmits data from fifo buffer to antenna and automatically activates the receiver after transmission autocoll 1101 handles felica polling (card operation mode only) and mifare anticollision (card operation mode only) mfauthent 1110 performs the mifare standard authentication as a reader softreset 1111 resets the pn512
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 102 of 136 nxp semiconductors pn512 full nfc forum compliant solution the pn512 has to be configured after each power up, before using the automatic anticollision/polling function (a utocoll command). during a hard power down (reset pin) this configuration remains unchanged. this command terminates automatically when finished and the active command is idle. 19.3.1.3 generate randomid this command generates a 10-byte random number which is initially stored in the internal buffer. this then overwrites the 10 bytes in the internal 25-byte buffer. this command automatically terminates when finished and the pn512 returns to idle mode. 19.3.1.4 calccrc the fifo buffer content is transferred to t he crc coprocessor and the crc calculation is started. the calculation result is stor ed in the crcresultreg register. the crc calculation is not limited to a dedicated number of bytes. the calculation is not stopped when the fifo buffer is empty during the data stream. the next byte written to the fifo buffer is added to the calculation. the crc preset value is controlled by the modereg register?s crcpreset[1:0] bits. the value is loaded in to the crc coprocessor when the command starts. this command must be terminated by wr iting a command to the commandreg register, such as, the idle command. if the autotestreg register?s selftest[3:0] bits are set correctly, the pn512 enters self test mode. starting the calccrc command initiates a digital se lf test. the result of the self test is written to the fifo buffer. 19.3.1.5 transmit the fifo buffer content is immediately transm itted after starting this command. before transmitting the fifo buffer content, all relevant registers must be set for data transmission. this command automatically terminates when the fifo buffer is empty. it can be terminated by another command written to the commandreg register. 19.3.1.6 nocmdchange this command does not influence any running command in the commandreg register. it can be used to manipulate any bit except the commandreg register command[3:0] bits, for example, the rcvoff bit or the powerdown bit. 19.3.1.7 receive the pn512 activates the receiver path and waits for a data stream to be received. the correct settings must be chosen before starting this command. this command automatically terminates when the data stream ends. this is indicated either by the end of frame pattern or by th e length byte depending on the selected frame type and speed. remark: if the rxmodereg register?s rxmultiple bit is set to logic 1, the receive command will not automatically terminate. it must be termin ated by star ting another command in the commandreg register.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 103 of 136 nxp semiconductors pn512 full nfc forum compliant solution 19.3.1.8 transceive this command continuously repeats the transmissi on of data from the fifo buffer and the reception of data from the rf field. the first action is transmit and after transmission the command is changed to receive a data stream. each transmit process must be started by se tting the bitframingreg register?s startsend bit to logic 1. this command must be cleared by writing any command to the commandreg register. remark: if the rxmodereg register?s rxmultiple bit is set to logic 1, the transceive command never leaves the receive state because this state cannot be cancelled automatically. 19.3.1.9 autocoll this command automatically handles the mifare activation and the felica polling in the card operation mode. the bit initiator in the register controlreg has to be set to logic 0 for correct operation. during this command al so the mode detector is active if not deactivated by setting the bit modedetoff in the modereg register. after the mode detector detects a mode, all the mode dependent registers are set according to the received data. in case of no external rf field the command resets the internal state machine and returns to the in itial state but it will not be terminated. wh en the command terminates the transceive command gets active. during protocol processing the irq bits are not supported. only the last received frame will serve the irq?s. the treatm ent of the txcrcen and rxcrcen bits is different to the protocol. during iso/iec 14443a activation th e enable bits are defined by the command autocoll. the changes cannot be observed at the register txmodereg and rxmodereg. after the transceive command is active, the value of the register bit is relevant. the fifo will also receive the two crc check bytes of the last co mmand even if they already checked and correct, if the state machine (anticollision and select routine) has to not been executed and 106 kbit is detected. during felica activation the register bit is always relevant and is not overruled by the command settings. this command can be cleared by software by writing any other command to the commandreg register, e.g. the idle command. writing the same content again to the commandreg register resets the state machine.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 104 of 136 nxp semiconductors pn512 full nfc forum compliant solution nfcip-1 106 kbps passive communication mode: the mifare anticollision is finished and t he command has automat ically changed to transceive. the fifo contains the atr_req frame including the start byte f0h. the bit targetactivated in the status2reg register is set to logic 1. nfcip-1 212/424 kbps passive communication mode: the felica polling command is finished and t he command has automat ically changed to transceive. the fifo contains the atr_req. the bit targetactivated in the status2reg register is set to logic 1. nfcip-1 106/212/424 kbps active communication mode: this command is changing the automatically to the command transceive. the fifo contains the atr req the bit targetactivated in the status2reg register is set to logic 0. for 106 kbps only, the first byte in the fifo indicates the start byte f0h and the crc is added to the fifo. fig 37. autocoll command nfcip-1 106 kb aud iso14443-3 npcip-1 > 106 kb aud felica idle modeo mode detection rxf raming mfhalted = 1 halt ac nac select nselect hlta ac polling, polling response next frame received next frame received reqa, wupa ready active wupa select select ready* active* transceive wait for transmit next frame received n j hlta reqa, wupa, ac, nac, select, nselect, error reqa, ac, nac, select, nselect, hlta reqa, wupa, nac, nselect, hlta, error reqa, wupa, nac, nselect, hlta, error reqa, wupa, ac, select, nselect, error 00 10 ac aaa-001826
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 105 of 136 nxp semiconductors pn512 full nfc forum compliant solution mifare (card operation mode): the mifare anticollision is finished and t he command has automat ically changed to transceive. the fifo contains the first comma nd after the select. the bit targetactivated in the status2reg register is set to logic 1. felica (card operation mode): the felica polling command is finished and t he command has automat ically changed to transceive. the fifo contains the first co mmand followed after the poling by the felica protocol. the bit targetactivated in the status2reg register is set to logic 1. 19.3.1.10 mfauthent this command manages mifare authenticati on to enable a secure communication to any mifare mini, mifare 1k and mifare 4k card. the following data is written to the fifo buffer before the command can be activated: ? authentication command code (60h, 61h) ? block address ? sector key byte 0 ? sector key byte 1 ? sector key byte 2 ? sector key byte 3 ? sector key byte 4 ? sector key byte 5 ? card serial number byte 0 ? card serial number byte 1 ? card serial number byte 2 ? card serial number byte 3 in total 12 bytes are written to the fifo. remark: when the mfauthent command is active all access to the fifo buffer is blocked. however, if there is access to the fi fo buffer, the errorreg register?s wrerr bit is set. this command automatically terminates when the mifare card is authenticated and the status2reg register?s mfcrypto1on bit is set to logic 1. this command does not terminate automatically if the card does not answer, so the timer must be initialized to automatic mode. in this case, in addition to the idleirq bit, the timerirq bit can be used as the termination cr iteria. during authentication processing, the rxirq bit and txirq bit are blocked. the crypto 1on bit is only valid after termination of the mfauthent command, either after processing the protocol or writing idle to the commandreg register. if an error occurs during authe ntication, the errorr eg register?s protocolerr bit is set to logic 1 and the status2reg register?s crypto1on bit is set to logic 0.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 106 of 136 nxp semiconductors pn512 full nfc forum compliant solution 19.3.1.11 softreset this command performs a reset of the device. the configuration data of the internal buffer remains unchanged. all registers are set to t he reset values. this command automatically terminates when finished. remark: the serialspeedreg register is reset and therefore the serial data rate is set to 9.6 kbd.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 107 of 136 nxp semiconductors pn512 full nfc forum compliant solution 20. testsignals 20.1 selftest the pn512 has the capability to perform a digital selftest. to start the selftest the following procedure has to be performed: 1. perform a soft reset. 2. clear the internal buffer by writing 25 by tes of 00h and perform the config command. 3. enable the selftest by writing the value 09h to the register autotestreg. 4. write 00h to the fifo. 5. start the selftest with the calccrc command. 6. the selftest will be performed. 7. when the selftest is finished, the fifo contains the following bytes: version 1.0 has a different selftest answer, explained in section 21 . correct answer for versionreg equal to 82h: 00h, ebh, 66h, bah, 57h, bfh, 23h, 95h, d0h, e3h, 0dh, 3dh, 27h, 89h, 5ch, deh, 9dh, 3bh, a7h, 00h, 21h, 5bh, 89h, 82h, 51h, 3ah, ebh, 02h, 0ch, a5h, 00h, 49h, 7ch, 84h, 4dh, b3h, cch, d2h, 1bh, 81h, 5dh, 48h, 76h, d5h, 71h, 61h, 21h, a9h, 86h, 96h, 83h, 38h, cfh, 9dh, 5bh, 6dh, dch, 15h, bah, 3eh, 7dh, 95h, 3bh, 2fh 20.2 testbus the testbus is implemented for production test purposes. the following configuration can be used to improve the design of a system using the pn512. the testbus allows to route internal signals to the digital interface. the testbus signals are selected by accessing testbussel in register testsel2reg. table 159. testsignal routing (testsel2reg = 07h) pins d6 d5 d4 d3 d2 d1 d0 testsignal sdata scoll svalid sover rcv_reset rfon, filtered envelope table 160. description of testsignals pins testsignal description d6 sdata shows the actual received data stream. d5 scoll shows if in the actual bit a collision has been detected (106 kbit only) d4 svalid shows if sdata and scoll are valid d3 sover shows that the receiver has detected a stop condition (iso/iec 14443a/ mifare mode only). d2 rcv_reset shows if the receiver is reset d1 rfon, filtered shows the value of the internal rf level detector d0 envelope shows the output of the internal coder
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 108 of 136 nxp semiconductors pn512 full nfc forum compliant solution 20.3 testsignals at pin aux table 161. testsignal routing (testsel2reg = 0dh) pins d6 d5 d4 d3 d2 d1 d0 testsignal clkstable clk27/8 clk27rf/8 clkrf13rf/4 clk27 clk27rf clk13rf table 162. description of testsignals pins testsignal description d6 clkstable shows if the oscillator delivers a stable signal. d5 clk27/8 shows the output signal of the oscillator divided by 8 d4 clk27rf/8 shows the clk27rf signal divided by 8 d3 clkrf13/4 shows the clk13rf divided by 4. d2 clk27 shows the output signal of the oscillator d1 clk27rf shows the rf clock multiplied by 2. d0 clk13rf shows the rf clock of 13.56 mhz table 163. testsignal routing (testsel2reg = 19h) pins d6 d5 d4 d3 d2 d1 d0 testsignal - trunning - - - - - table 164. description of testsignals pins testsignal description d6 - - d5 trunning trunning stops 1 cloc kcycle after timerirq is raised d4 - - d3 - - d2 - - d1 - - d0 - - table 165. testsignals description selaux description for aux1 / aux2 0000 tristate 0001 dac: register testdac 1/2 0010 dac: testsignal corr1 0011 dac: testsignal corr2 0100 dac: testsignal minlevel 0101 dac: adc_i 0110 dac: adc_q 0111 dac: testsignal adc_i combined with adc_q 1000 testsignal for production test 1001 sam clock 1010 high 1011 low 1100 txactive
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 109 of 136 nxp semiconductors pn512 full nfc forum compliant solution each signal can be switched to pin aux1 or aux2 by setting selaux1 or selaux2 in the register analogtestreg. note: the dac has a current output, it is recommended to use a 1 k ? pull-down resistance at pins aux1/aux2. 20.4 prbs enables the prbs9 or prbs15 sequence according to itu-to150. to start the transmission of the defined datastream the command send has to be activated. the preamble/sync byte/start bit/parity bit are generated automatically depending on the selected mode. note: all relevant register to transmit data have to be configured before entering prbs mode according itu-to150. 21. errata sheet this data sheet is describing the functionality for version 2.0 and the industrial version. this chapter lists all differences from version 1.0 to version 2.0: the value of the version in section 9.2.4.8 is set to80h. the behaviour ?rfu? for the register is undefined. the answer to the selftest (see section 20.1 ) for version 1.0 (versionreg equal to 80h): 00h, aah, e3h, 29h, 0ch, 10h, 29zhh, 6bh, 76h, 8dh, afh, 4bh, a2h, dah, 76h, 99h c7h, 5eh, 24h, 69h, d2h, bah, fah, bch 3eh, dah, 96h, b5h, f5h, 94h, b0h, 3ah 4eh, c3h, 9dh, 94h, 76h, 4ch, eah, 5eh 38h, 10h, 8fh, 2dh, 21h, 4bh, 52h, bfh 4eh, c3h, 9dh, 94h, 76h, 4ch, eah, 5eh 38h, 10h, 8fh, 2dh, 21h, 4bh, 52h, bfh fbh, f4h, 19h, 94h, 82h, 5ah, 72h, 9dh bah, 0dh, 1fh, 17h, 56h, 22h, b9h, 08h only the default setting for the prescaler (see section 15 ? timer unit ? on page 96 ): t = ((tprescaler*2+1)*treload+1)/13,56 mhz is supported. as such only the formula f timer = 13,56 mhz/(2*prescaler+1) is applicable for the tprescalerhigh in table 100 ? description of tmodereg bits ? on page 57 and tprescalerlo in table 101 ? tprescalerreg register (address 2bh); reset value: 00h, 00000000b ? on page 58 . as there is no option for the prescaler available, also the tprescaleven is not available section 9.2.2.10 on page 45 . this bit is set to ?rfu?. 1101 rxactive 1110 subcarrier detected 1111 tstbusbit table 165. testsignals description selaux description for aux1 / aux2
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 110 of 136 nxp semiconductors pn512 full nfc forum compliant solution especially when using time slot protocols, it is needed that th e error flag is copied into the status information of the frame. when using the rxmultiple feature (see section 9.2.2.4 on page 39 ) within version 1.0 the protocol error flag is not included in the status information for the frame. in addition the crc ok is copied instead of the crcerr. this can be a problem in frames without length information e.g. iso/iec 14443-b. the version 1.0 does not accept a type b eof if there is no 1 bit after the series of 0 bits, as such the configuration within section 9.2.2.15 ? typebreg ? on page 50 bit 4 for rxeofreq does not exist. in addition the ic only has th e possibility to select the minimum or maximum timings for sof/eof g eneration defined in iso/iec14443b. as such the configuration possible in version 2.0 through the eofsofadjust bit (see section 9.2.4.7 ? autotestreg ? on page 64 ) does not exist and the configuration is limited to only setting minimum and maximum length according iso/iec 14443-b, see section 9.2.2.15 ? typebreg ? on page 50 , bit 4. 22. application design-in information the figure below shows a typical circuit diagram, using a complementary antenna connection to the pn512. the antenna tuning and rf part matching is described in the application note ?nfc transmission module antenna and rf design guide?. fig 38. typical circuit diagram avdd tvdd rx vmid supply tx1 tvss tx2 dvss dvdd dvdd pvdd svdd avss irq nrstpd r 1 r 2 l 0 c 0 c 0 c 2 c 1 c rx r q r q c 1 c 2 l 0 c vmid 001aan232 27.12 mhz oscin oscout host controller interface pn512 antenna lant
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 111 of 136 nxp semiconductors pn512 full nfc forum compliant solution 23. limiting values 24. recommended operating conditions table 166. limiting values in accordance with the absolute ma ximum rating system (iec 60134). symbol parameter conditions min max unit v dda analog supply voltage ? 0.5 +4.0 v v ddd digital supply voltage ? 0.5 +4.0 v v dd(pvdd) pvdd supply voltage ? 0.5 +4.0 v v dd(tvdd) tvdd supply voltage ? 0.5 +4.0 v v dd(svdd) svdd supply voltage ? 0.5 +4.0 v v i input voltage all input pins except pins sigin and rx v ss(pvss) ? 0.5 v dd(pvdd) + 0.5 v pin mfin v ss(pvss) ? 0.5 v dd(svdd) + 0.5 v p tot total power dissipation per package; and v ddd in shortcut mode -200mw t j junction temperature - 125 ?c v esd electrostatic discharge voltage hbm; 1500 ? , 100 pf; jesd22-a114-b - 2000 v mm; 0.75 ? h, 200 pf; jesd22-a114-a -2 0 0v charged device model; jesd22-c101-a on all pins - 200 v on all pins except svdd in tfbga64 package -5 0 0v industrial version: v esd electrostatic discharge voltage hbm; 1500 ? , 100 pf; jesd22-a114-b - 2000 v mm; 0.75 ? h, 200 pf; jesd22-a114-a -200v charged device model; aec-q100-011 on all pins - 200 v on all pins except svdd - 500 v table 167. operating conditions symbol parameter conditions min typ max unit v dda analog supply voltage v dd(pvdd) ? v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.5- 3.6v v ddd digital supply voltage v dd(pvdd) ? v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.5- 3.6v v dd(tvdd) tvdd supply voltage v dd(pvdd) ? v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [1] [2] 2.5- 3.6v
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 112 of 136 nxp semiconductors pn512 full nfc forum compliant solution [1] supply voltages below 3 v reduce the perfo rmance (the achievable operating distance). [2] v dda , v ddd and v dd(tvdd) must always be the same voltage. [3] v dd(pvdd) must always be the same or lower voltage than v ddd . 25. thermal characteristics 26. characteristics v dd(pvdd) pvdd supply voltage v dd(pvdd) ? v dda = v ddd = v dd(tvdd) ; v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v [3] 1.6- 3.6v v dd(svdd) svdd supply voltage v ssa =v ssd =v ss(pvss) =v ss(tvss) =0v 1.6 - 3.6 v t amb ambient temperature hvqfn 32, hvqfn40, tfbga64 ? 30 - +85 ? c industrial version: t amb ambient temperature hvqfn32 ? 40 - +90 ? c table 167. operating conditions ?continued symbol parameter conditions min typ max unit table 168. thermal characteristics symbol parameter conditions package typ unit r thj-a thermal resistance from junction to ambient in still air with exposed pad soldered on a 4 layer jedec pcb in still air hvqfn32 40 k/w hvqfn40 35 k/w tfbga64 k/w table 169. characteristics symbol parameter conditions min typ max unit input characteristics pins a0, a1 and nrstpd i li input leakage current ? 1-+1 ? a v ih high-level input voltage 0.7v dd(pvdd) -- v v il low-level input voltage - - 0.3v dd(pvdd) v pin sigin i li input leakage current ? 1-+1 ? a v ih high-level input voltage 0.7v dd(svdd) -- v v il low-level input voltage - - 0.3v dd(svdd) v pin ale i li input leakage current ? 1-+1 ? a v ih high-level input voltage 0.7v dd(pvdd) -- v v il low-level input voltage - - 0.3v dd(pvdd) v pin rx [1] v i input voltage ? 1-v dda +1 v c i input capacitance v dda = 3 v; receiver active; v rx(p-p) = 1v; 1.5v (dc) offset -1 0- p f
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 113 of 136 nxp semiconductors pn512 full nfc forum compliant solution r i input resistance v dda = 3 v; receiver active; v rx(p-p) =1v; 1.5v (dc) offset - 350 - ? input voltage range; see figure 39 v i(p-p)(min) minimum peak-to-peak input voltage manchester encoded; v dda =3v - 100 - mv v i(p-p)(max) maximum peak-to-peak input voltage manchester encoded; v dda =3v -4- v input sensitivity; see figure 39 v mod modulation voltage minimum manchester encoded; v dda =3v; rxgain[2:0] = 111b (48 db) -5- mv pin oscin i li input leakage current ? 1-+1 ? a v ih high-level input voltage 0.7v dda -- v v il low-level input voltage - - 0.3v dda v c i input capacitance v dda = 2.8 v; dc = 0.65 v; ac = 1 v (p-p) -2- pf input/output characteristics pins d1, d2, d3, d4, d5, d6 and d7 i li input leakage current ? 1-+1 ? a v ih high-level input voltage 0.7v dd(pvdd) -- v v il low-level input voltage - - 0.3v dd(pvdd) v v oh high-level output voltage v dd(pvdd) =3v; i o =4ma v dd(pvdd) ? 0.4 -v dd(pvdd) v v ol low-level output voltage v dd(pvdd) =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i oh high-level output current v dd(pvdd) =3v - - 4 ma i ol low-level output current v dd(pvdd) =3v - - 4 ma output characteristics pin sigout v oh high-level output voltage v dd(svdd) =3v; i o =4ma v dd(svdd) ? 0.4 -v dd(svdd) v v ol low-level output voltage v dd(svdd) =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i ol low-level output current v dd(svdd) =3v - - 4 ma i oh high-level output current v dd(svdd) =3v - - 4 ma pin irq v oh high-level output voltage v dd(pvdd) =3v; i o =4ma v dd(pvdd) ? 0.4 -v dd(pvdd) v v ol low-level output voltage v dd(pvdd) =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i ol low-level output current v dd(pvdd) =3v - - 4 ma i oh high-level output current v dd(pvdd) =3v - - 4 ma table 169. characteristics ?continued symbol parameter conditions min typ max unit
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 114 of 136 nxp semiconductors pn512 full nfc forum compliant solution pins aux1 and aux2 v oh high-level output voltage v ddd =3v; i o =4ma v ddd ? 0.4 - v ddd v v ol low-level output voltage v ddd =3v; i o =4ma v ss(pvss) -v ss(pvss) + 0.4 v i ol low-level output current v ddd =3v - - 4 ma i oh high-level output current v ddd =3v - - 4 ma pins tx1 and tx2 v ol low-level output voltage v dd(tvdd) =3v; i dd(tvdd) =32ma; cwgsp[5:0] = 0fh - - 0.15 v v dd(tvdd) =3v; i dd(tvdd) =80ma; cwgsp[5:0] = 0fh --0.4v v dd(tvdd) = 2.5 v; i dd(tvdd) =32ma; cwgsp[5:0] = 0fh - - 0.24 v v dd(tvdd) = 2.5 v; i dd(tvdd) =80ma; cwgsp[5:0] = 0fh - - 0.64 v v oh high-level output voltage v dd(tvdd) =3v; i dd(tvdd) =32ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.15 -- v v dd(tvdd) =3v; i dd(tvdd) =80ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.4 -- v v dd(tvdd) = 2.5 v; i dd(tvdd) =32ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.24 -- v v dd(tvdd) = 2.5 v; i dd(tvdd) =80ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.64 -- v industrial version: v ol low-level output voltage v dd(tvdd) = 2.5 v; i dd(tvdd) =32ma; cwgsp[5:0] = 3fh - - 0.18 v v dd(tvdd) = 2.5 v; i dd(tvdd) =80ma; cwgsp[5:0] = 3fh --0 . 4 4v v oh high-level output voltage v dd(tvdd) =3v; i dd(tvdd) =32ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.18 -- v v dd(tvdd) =3v; i dd(tvdd) =80ma; cwgsp[5:0] = 3fh v dd(tvdd) ? 0.44 -- v output resistance for tx1/tx2, industrial version: r op,01h high level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsp = 01h 123 180 261 ? table 169. characteristics ?continued symbol parameter conditions min typ max unit
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 115 of 136 nxp semiconductors pn512 full nfc forum compliant solution r op,02h high level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsp = 02h 61 90 131 ? r op,04h high level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsp = 04h 30 46 68 ? r op,08h high level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsp = 08h 15 23 35 ? r op,10h high level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsp = 10h 7.5 12 19 ? r op,20h high level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsp = 20h 4.2 6 9 ? r op,3fh high level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsp = 3fh 235 ? r on,10h low level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsn = 10h 30 46 68 ? r on,20h low level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsn = 20h 15 23 35 ? r on,40h low level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsn = 40h 7.5 12 19 ? r on,80h low level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsn = 80h 4.2 6 9 ? r on,f0h low level output resistance tv dd = 3 v, v tx = tv dd - 100 mv, cwgsn = f0h 235 ? current consumption i pd power-down current v dda =v ddd = v dd(tvdd) = v dd(pvdd) =3v hard power-down; pin nrstpd set low [2] --5 ? a soft power-down; rf level detector on [2] --1 0 ? a i dd(pvdd) pvdd supply current pin pvdd [3] --4 0m a i dd(tvdd) tvdd supply current pin tvdd; continuous wave [4] [5] [6] -6 01 0 0m a i dd(svdd) svdd supply current pin svdd [7] --4m a i ddd digital supply current pin dvdd; v ddd =3v - 6.5 9 ma i dda analog supply current pin avdd; v dda =3v, commandreg register?s rcvoff bit = 0 -710ma pin avdd; receiver switched off; v dda =3v, commandreg register?s rcvoff bit = 1 -35ma industrial version: i ddd digital supply current pin dvdd; v ddd =3v - 6.5 9,5 ma table 169. characteristics ?continued symbol parameter conditions min typ max unit
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 116 of 136 nxp semiconductors pn512 full nfc forum compliant solution [1] the voltage on pin rx is clamped by internal diodes to pins avss and avdd. [2] i pd is the total current for all supplies. [3] i dd(pvdd) depends on the overall load at the digital pins. [4] i dd(tvdd) depends on v dd(tvdd) and the external circuit c onnected to pins tx1 and tx2. [5] during typical circuit operation, the overall current is below 100 ma. [6] typical value using a complementary driv er configuration and an antenna matched to 40 ? between pins tx1 and tx2 at 13.56 mhz. [7] i dd(svdd) depends on the load at pin mfout. i pd power-down current v dda =v ddd = v dd(tvdd) = v dd(pvdd) =3v hard power-down; pin nrstpd set low [2] --1 5 ? a soft power-down; rf level detector on [2] --3 0 ? a clock frequency f clk clock frequency - 27.12 - mhz ? clk clock duty cycle 40 50 60 % t jit jitter time rms - - 10 ps crystal oscillator v oh high-level output voltage pin oscout - 1.1 - v v ol low-level output voltage pin oscout - 0.2 - v c i input capacitance pin oscout - 2 - pf pin oscin - 2 - pf typical input requirements f xtal crystal frequency - 27.12 - mhz esr equivalent series resistance - - 100 ? c l load capacitance - 10 - pf p xtal crystal power dissipation - 50 100 ? w table 169. characteristics ?continued symbol parameter conditions min typ max unit
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 117 of 136 nxp semiconductors pn512 full nfc forum compliant solution 26.1 timing characteristics fig 39. pin rx input voltage range 001aak012 vmid 0 v v mod v i(p-p)(max) v i(p-p)(min) 13.56 mhz carrier table 170. spi timing characteristics symbol parameter conditions min typ max unit t wl pulse width low line sck 50 - - ns t wh pulse width high line sck 50 - - ns t h(sckh-d) sck high to data input hold time sck to changing mosi 25 - - ns t su(d-sckh) data input to sck high set-up time changing mosi to sck 25 - - ns t h(sckl-q) sck low to data output hold time sck to changing miso - - 25 ns t (sckl-nssh) sck low to nss high time 0- - ns table 171. i 2 c-bus timing in fast mode symbol parameter conditions fast mode high-speed mode unit min max min max f scl scl clock frequency 0 400 0 3400 khz t hd;sta hold time (repeated) start condition after this period, the first clock pulse is generated 600 - 160 - ns t su;sta set-up time for a repeated start condition 600 - 160 - ns t su;sto set-up time for stop condition 600 - 160 - ns t low low period of the scl clock 1300 - 160 - ns t high high period of the scl clock 600 - 60 - ns t hd;dat data hold time 0 900 0 70 ns
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 118 of 136 nxp semiconductors pn512 full nfc forum compliant solution t su;dat data set-up time 100 - 10 - ns t r rise time scl signal 20 300 10 40 ns t f fall time scl signal 20 300 10 40 ns t r rise time sda and scl signals 20 300 10 80 ns t f fall time sda and scl signals 20 300 10 80 ns t buf bus free time between a stop and start condition 1.3 - 1.3 - ? s remark: the signal nss must be low to be able to send several bytes in one data stream. to send more than one data stream nss must be set high between the data streams. fig 40. timing diagram for spi fig 41. timing for fast and standard mode devices on the i 2 c-bus table 171. i 2 c-bus timing in fast mode ?continued symbol parameter conditions fast mode high-speed mode unit min max min max 001aaj634 t sckl t sckh t sckl t dxsh t shdx t dxsh t sldx t slnh mosi sck miso msb msb lsb lsb nss 001aaj635 sda t f scl t low t f t sp t r t hd;sta t hd;dat t hd;sta t r t high t su;dat ss r p s t su;sta t su;sto t buf
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 119 of 136 nxp semiconductors pn512 full nfc forum compliant solution 26.2 8-bit parallel interface timing 26.2.1 ac symbols each timing symbol has five characters. the fi rst character is always 't' for time. the other characters indicate the name of a signal or the logic state of that signal (depending on position): example: t avll = time for address valid to ale low 26.2.2 ac operating specification 26.2.2.1 bus timing for separated read/write strobe table 172. ac symbols designation signal designation logic level a address h high d data l low w nwr or nwait z high impedance r nrd or r/nw or nwrite x any level or data l ale or as v any valid signal or data c ncs n nss s nds or ndstrb and nastrb, sck table 173. timing specification for separated read/write strobe symbol parameter min max unit t lhll ale pulse width 10 - ns t avll multiplexed address bus valid to ale low (address set up time) 5 - ns t llax multiplexed address bus valid after ale low (address hold time) 5 - ns t llwl ale low to nwr, nrd low 10 - ns t clwl ncs low to nrd, nwr low 0 - ns t whch nrd, nwr high to ncs high 0 - ns t rldv nrd low to data valid - 35 ns t rhdz nrd high to data high impedance - 10 ns t dvwh data valid to nwr high 5 - ns t whdx data hold after nwr high (data hold time) 5 - ns t wlwh nrd, nwr pulse width 40 - ns t avwl separated address bus valid to nrd, nwr low (set up time) 30 - ns t whax separated address bus valid after nwr high (hold time) 5 - ns t whwl period between sequenced read/write accesses 40 - ns
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 120 of 136 nxp semiconductors pn512 full nfc forum compliant solution remark: for separated address and data bus the signal ale is not relevant and the multiplexed addresses on the data bus don?t care. for the multiplexed address and data bus the address lines a0 to a3 have to be connected as described in chapter automati c host controller interface type detection. 26.2.2.2 bus timing for common read/write strobe fig 42. timing diagram for separated read/write strobe 001aan233 t lhll t clwl t llwl t whwl t wlwh t whwl t whdx t rhdz t wldv t rldv t whch t whax t avll t llax t avwl ale ncs nwr nrd d0...d7 d0...d7 a0...a3 multiplexed addressbus a0...a3 separated addressbus a0...a3 table 174. timing specification for common read/write strobe symbol parameter min max unit t lhll as pulse width 10 - ns t avll multiplexed address bus valid to as low (address set up time) 5 - ns t llax multiplexed address bus valid after as low (address hold time) 5 - ns t llsl as low to nds low 10 - ns t clsl ncs low to nds low 0 - ns t shch nds high to ncs high 0 - ns t sldv,r nds low to data valid (for read cycle) - 35 ns t shdz nds low to data high impedance (read cycle) - 10 ns t dvsh data valid to nds high (for write cycle) 5 - ns t shdx data hold after nds high (write cycle, hold time) 5 - ns t shrx r/nw hold after nds high 5 - ns t slsh nds pulse width 40 - ns t avsl separated address bus valid to nds low (hold time) 30 - ns t shax separated address bus valid after nds high (set up time) 5 - ns
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 121 of 136 nxp semiconductors pn512 full nfc forum compliant solution remark: for separated address and data bus the signal ale is not relevant and the multiplexed addresses on the data bus don?t care. for the multiplexed address and data bus the address lines a0 to a3 have to be connected as described in automatic ? -controller interface type detection. fig 43. timing diagram for common read/write strobe separated addressbus a0...a3 multiplexed addressbus a0...a3 ale t lhll t clsl r/nw nds d0...d7 d0...d7 a0...a3 ncs t shch t shrx t rvsl t llsl t slsh t shsl t avll t llax t sldv, r t sldv, w t shdx t shdz t shax t avsl t shsl 001aan234
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 122 of 136 nxp semiconductors pn512 full nfc forum compliant solution 27. package information the pn512 can be delivered in 3 different packages. table 175. package information package remarks hvqfn32 8-bit parallel interface not supported hvqfn40 supports the 8-bit parallel interface tfbga64 ball grid array facilitating development of an pci compliant device
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 123 of 136 nxp semiconductors pn512 full nfc forum compliant solution 28. package outline fig 44. package outline package version (hvqfn32) 0.5 1 a 1 e h b unit y e 0.2 c references outline version european projection issue date iec jedec jeita mm 5.1 4.9 d h 3.25 2.95 y 1 5.1 4.9 3.25 2.95 e 1 3.5 e 2 3.5 0.30 0.18 0.05 0.00 0.05 0.1 dimensions (mm are the original dimensions) sot617-1 mo-220 - - - - - - 0.5 0.3 l 0.1 v 0.05 w 0 2.5 5 mm scale sot617-1 hvqfn32: plastic thermal enhanced very thin quad flat package; no leads; 32 terminals; body 5 x 5 x 0.85 mm a (1) max. a a 1 c detail x y y 1 c e l e h d h e e 1 b 91 6 32 25 24 17 8 1 x d e c b a e 2 terminal 1 index area terminal 1 index area 01-08-08 02-10-18 1/2 e 1/2 e ac c b v m w m e (1) note 1. plastic or metal protrusions of 0.075 mm maximum per side are not included. d (1)
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 124 of 136 nxp semiconductors pn512 full nfc forum compliant solution fig 45. package outline package version (hvqfn40) references outline version european projection issue date iec jedec jeita sot618-1 mo-220 sot618-1_po 02-10-22 13-11-05 unit mm max nom min 1.00 0.05 0.2 6.1 4.25 6.1 0.4 a (1) dimensions (mm are the original dimensions) note 1. plastic or metal protrusions of 0.075 mm maximum per side are not included. hvqfn40: plastic thermal enhanced very thin quad flat package; no leads; 40 terminals; body 6 x 6 x 0.85 mm sot618-1 a 1 b 0.30 cd (1) d h e (1) e h 4.10 ee 1 e 2 lvw 0.05 y 0.05 y 1 0.1 0.85 0.02 6.0 4.10 6.0 0.21 0.3 3.95 0.80 0.00 5.9 3.95 5.9 0.18 0.5 4.5 0.5 4.25 4.5 0.1 e e 1/2 e 1/2 e y terminal 1 index area a a 1 c l e h d h b 11 20 40 31 30 21 10 1 d e terminal 1 index area 0 2.5 5 mm scale e 1 ac c b v w c y 1 c e 2 x detail x b a
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 125 of 136 nxp semiconductors pn512 full nfc forum compliant solution fig 46. package outline package version (tfbga64) references outline version european projection issue date iec jedec jeita sot1336-1 - - - sot1336-1_po 12-06-19 12-08-28 unit mm max nom min 1.15 0.35 0.45 5.6 5.6 4.55 0.15 0.1 a dimensions (mm are the original dimensions) tfbga64: plastic thin fine-pitch ball grid array package; 64 balls a 1 a 2 0.80 1.00 0.30 0.40 5.5 5.5 0.65 0.70 bdeee 1 4.55 0.90 0.25 0.35 5.4 5.4 0.65 e 2 vw 0.08 yy 1 0.1 sot1336-1 c y c y 1 0 5 mm scale x a a 2 a 1 detail x ball a1 index area ball a1 index area a e b d e 2 e a b c d e f g h 246 13578 e 1 e ac b ? v c ? w b 1/2 e 1/2 e
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 126 of 136 nxp semiconductors pn512 full nfc forum compliant solution 29. abbreviations 30. glossary modulation index ? defined as the voltage ratio (v max ? v min ) / (v max + v min ). load modulation index ? defined as the voltage ratio for the card (v max ? v min )/(v max +v min ) measured at the card?s coil. initiator ? generates rf field at 13.56 mhz and starts the nfcip-1 communication. target ? responds to command either using load modulation scheme (rf field generated by initiator) or using modulation of self generated rf field (no rf field generated by initiator). 31. references [1] application note ? nfc transmission module an tenna and rf design guide table 176. abbreviations acronym description adc analog-to-digital converter ask amplitude shift keying bpsk binary phase shift keying crc cyclic redundancy check cw continuous wave dac digital-to-analog converter eof end of frame hbm human body model i 2 c inter-integrated circuit lsb least significant bit miso master in slave out mm machine model mosi master out slave in msb most significant bit nss not slave select pcb printed-circuit board pll phase-locked loop prbs pseudo-random bit sequence rx receiver sof start of frame spi serial peripheral interface tx transmitter uart universal asynchronous receiver transmitter
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 127 of 136 nxp semiconductors pn512 full nfc forum compliant solution 32. revision history table 177. revision history document id release date data sheet status change notice supersedes pn512 v.4.5 20131217 product data sheet - pn512 v.4.4 modifications: ? typo corrected pn512 v.4.4 20130730 product data sheet - pn512 v.4.3 modifications: ? value added in table 166 ? limiting values ? ? change of descriptive title pn512 v.4.3 20130507 product data sheet - pn512 v.4.2 modifications: ? new type PN5120A0ET/c2 added ? table 72 ? description of mifnfcreg bits ? : description of txwait updated ? table 153 ? register and bit settings controlling the signal on pin tx1 ? and table 153 ? register and bit settings controlling the signal on pin tx1 ? : updated ? table 166 ? limiting values ? : v esd values added pn512 v.4.2 20120828 product data sheet - pn512 v.4.1 modifications: ? table 123 ? autotestreg register (address 36h); reset value: 40h, 01000000b ? : description of bits 4 and 5 corrected pn512 v.4.1 20120821 product data sheet - pn512 v.4.0 modifications: ? table 124 ? description of bits ? : description of bits 4 and 5 corrected pn512 v.4.0 20120712 product data sheet - pn512 v.3.9 modifications: ? section 33.4 ? licenses ? : updated pn512 v.3.9 20120201 product data sheet - pn512 v.3.8 modifications: ? adding information on the different version in general description. ? adding section 21 ? errata sheet ? on page 109 for explanation of differences between 1.0 and 2.0. ? adding ordering information for version 1.0 and industrial version in table 2 ? ordering information ? on page 5 ? adding the limitations and characterist ics for the industrial version, see table 1 ? quick reference data ? on page 4 , table 166 ? limiting values ? on page 111 , table 1 ? quick reference data ? on page 4 ? referring to the section 21 ? errata sheet ? on page 109 within the following sections: section 9.2.2.4 ? rxmodereg ? on page 39 , section 9.2.2.10 ? demodreg ? on page 45 , section 9.2.2.15 ? typebreg ? on page 50 , section 9.2.3.10 ? tmode register, tprescaler register ? on page 57 , section 9.2.4.7 ? autotestreg ? on page 64 , section 9.2.4.8 ? versionreg ? on page 64 , section 9.1.1 ? register bit behavior ? on page 23 , section 15 ? timer unit ? on page 96 , section 20 ? testsignals ? on page 107 ; ? update of command ?mem? to ?configure? and ?rfu? to ?autocoll? in table 158 ? command overview ? on page 101 . ? change of ?mem? to ?configure? in ?mem? in section 19.3.1.2 ? config command ? on page 101 ? adding autocoll in section 19.3.1.9 ? autocoll ? on page 103 pn512 v.3.8 20111025 product data sheet - pn512 v.3.7 modifications: ? table 168 ?characteristics?: unit of p xtal corrected 111310 june 2005 objective data sheet - modifications: ? initial version
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 128 of 136 nxp semiconductors pn512 full nfc forum compliant solution 33. legal information 33.1 data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term ?short data sheet? is explained in section ?definitions?. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple device s. the latest product status information is available on the internet at url http://www.nxp.com . 33.2 definitions draft ? the document is a draft versi on only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall hav e no liability for the consequences of use of such information. short data sheet ? a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request vi a the local nxp semiconductors sales office. in case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. product specification ? the information and data provided in a product data sheet shall define the specification of the product as agreed between nxp semiconductors and its customer , unless nxp semiconductors and customer have explicitly agreed otherwis e in writing. in no event however, shall an agreement be valid in which the nxp semiconductors product is deemed to offer functions and qualities beyond those described in the product data sheet. 33.3 disclaimers limited warranty and liability ? information in this document is believed to be accurate and reliable. however, nxp semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such info rmation. nxp semiconductors takes no responsibility for the content in this document if provided by an information source outside of nxp semiconductors. in no event shall nxp semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. notwithstanding any damages that customer might incur for any reason whatsoever, nxp semiconductors? aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the terms and conditions of commercial sale of nxp semiconductors. right to make changes ? nxp semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life-critical or safety-critical systems or equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors and its suppliers accept no liability for inclusion and/or use of nxp semiconducto rs products in such equipment or applications and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purpos es only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. customers are responsible for the design and operation of their applications and products using nxp semiconductors products, and nxp semiconductors accepts no liability for any assistance with applications or customer product design. it is customer?s sole responsibility to determine whether the nxp semiconductors product is suitable and fit for the customer?s applications and products planned, as well as fo r the planned application and use of customer?s third party customer(s). customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. nxp semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the customer?s applications or products, or the application or use by customer?s third party customer(s). customer is responsible for doing all necessary testing for the customer?s applic ations and products using nxp semiconductors products in order to av oid a default of the applications and the products or of the application or use by customer?s third party customer(s). nxp does not accept any liability in this respect. limiting values ? stress above one or more limiting values (as defined in the absolute maximum ratings system of iec 60134) will cause permanent damage to the device. limiting values are stress ratings only and (proper) operation of the device at these or any other conditions above those given in the recommended operating conditions section (if present) or the characteristics sections of this document is not warranted. constant or repeated exposure to limiting values will permanently and irreversibly affect the quality and reliability of the device. terms and conditions of commercial sale ? nxp semiconductors products are sold subject to the gener al terms and conditions of commercial sale, as published at http://www.nxp.com/profile/terms , unless otherwise agreed in a valid written individual agreement. in case an individual agreement is concluded only the terms and conditions of the respective agreement shall apply. nxp semiconductors hereby expressly objects to applying the customer?s general terms and conditions with regard to the purchase of nxp semiconducto rs products by customer. no offer to sell or license ? nothing in this document may be interpreted or construed as an offer to sell products t hat is open for acceptance or the grant, conveyance or implication of any lic ense under any copyrights, patents or other industrial or intellectual property rights. document status [1] [2] product status [3] definition objective [short] data sheet development this document contains data from the objecti ve specification for product development. preliminary [short] data sheet qualification this document contains data from the preliminary specification. product [short] data sheet production this document contains the product specification.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 129 of 136 nxp semiconductors pn512 full nfc forum compliant solution export control ? this document as well as the item(s) described herein may be subject to export control regu lations. export might require a prior authorization from competent authorities. quick reference data ? the quick reference data is an extract of the product data given in the limiting values and characteristics sections of this document, and as such is not comple te, exhaustive or legally binding. non-automotive qualified products ? unless this data sheet expressly states that this specific nxp semicon ductors product is automotive qualified, the product is not suitable for automotive use. it is neither qualified nor tested in accordance with automotive testing or application requirements. nxp semiconductors accepts no liabili ty for inclusion and/or use of non-automotive qualified products in automotive equipment or applications. in the event that customer uses t he product for design-in and use in automotive applications to automotive specifications and standards, customer (a) shall use the product without nxp semiconductors? warranty of the product for such automotive applicat ions, use and specifications, and (b) whenever customer uses the product for automotive applications beyond nxp semiconductors? specifications such use shall be solely at customer?s own risk, and (c) customer fully in demnifies nxp semi conductors for any liability, damages or failed product claims resulting from customer design and use of the product for automotive appl ications beyond nxp semiconductors? standard warranty and nxp semicond uctors? product specifications. 33.4 licenses 33.5 trademarks notice: all referenced brands, produc t names, service names and trademarks are the property of their respective owners. i 2 c-bus ? logo is a trademark of nxp b.v. mifare ? is a trademark of nxp b.v. 34. contact information for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com purchase of nxp ics with iso/iec 14443 type b functionality this nxp semiconductors ic is iso/iec 14443 type b software enabled and is licensed under innovatron?s contactless card patents license for iso/iec 14443 b. the license includes the right to use the ic in systems and/or end-user equipment. ratp/innovatron technology purchase of nxp ics with nfc technology purchase of an nxp semiconductors ic that complies with one of the near field communication (nfc) standards iso/iec 18092 and iso/iec 21481 does not convey an implied license unde r any patent right infringed by implementation of any of those standards.
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 130 of 136 nxp semiconductors pn512 full nfc forum compliant solution 35. tables table 1. quick reference data . . . . . . . . . . . . . . . . . . . . .4 table 2. ordering information . . . . . . . . . . . . . . . . . . . . .5 table 3. pin description hvqfn32 . . . . . . . . . . . . . . . .10 table 4. pin description hvqfn40 . . . . . . . . . . . . . . . . 11 table 5. pin description tfbga64 . . . . . . . . . . . . . . . . .12 table 6. communication overview for iso/iec 14443 a/mifare reader/writer . . . . .14 table 7. communication overview for felica reader/writer . . . . . . . . . . . . . . . . . . . . . . . . . . .16 table 8. felica framing and coding . . . . . . . . . . . . . . . .16 table 9. start value for the crc polynomial: (00h), (00h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 table 10. communication overview for active communication mode . . . . . . . . . . . . . . . . . . . .18 table 11. communication overview for passive communication mode . . . . . . . . . . . . . . . . . . . .19 table 12. framing and coding overview. . . . . . . . . . . . . .20 table 13. mifare card operation mode . . . . . . . . . . . . .20 table 14. felica card operation mode . . . . . . . . . . . . . .21 table 15. pn512 registers overview . . . . . . . . . . . . . . . .21 table 16. behavior of register bits and its designation . . .23 table 17. pagereg register (address 00h); reset value: 00h, 0000000b . . . . . . . . . . . . . . . . . . . . . . . . .24 table 18. description of pagereg bits . . . . . . . . . . . . . . .24 table 19. commandreg register (address 01h); reset value: 20h, 00100000b . . . . . . . . . . . . . . . . . . .24 table 20. description of commandreg bits . . . . . . . . . . .24 table 21. commienreg register (address 02h); reset value: 80h, 10000000b . . . . . . . . . . . . . . . . . . .25 table 22. description of commienreg bits . . . . . . . . . . .25 table 23. divienreg register (address 03h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .26 table 24. description of divienreg bits . . . . . . . . . . . . . .26 table 25. commirqreg register (address 04h); reset value: 14h, 00010100b . . . . . . . . . . . . . . . . . . .27 table 26. description of commirqreg bits . . . . . . . . . . .27 table 27. divirqreg register (address 05h); reset value: xxh, 000x00xxb . . . . . . . . . . . . . . . . . .28 table 28. description of divirqreg bits . . . . . . . . . . . . .28 table 29. errorreg register (address 06h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .29 table 30. description of errorreg bits . . . . . . . . . . . . . . .29 table 31. status1reg register (address 07h); reset value: xxh, x100x01xb . . . . . . . . . . . . . . . . . .30 table 32. description of status1reg bits . . . . . . . . . . . . .30 table 33. status2reg register (address 08h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . .31 table 34. description of status2reg bits . . . . . . . . . . . . .31 table 35. fifodatareg register (address 09h); reset value: xxh, xxxxxxxxb . . . . . . . . . . . . . . . . .32 table 36. description of fifodatareg bits . . . . . . . . . . .32 table 37. fifolevelreg register (address 0ah); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . .32 table 38. description of fifolevelreg bits. . . . . . . . . . .32 table 39. waterlevelreg register (address 0bh); reset value: 08h, 00001000b . . . . . . . . . . . . . . . . . . .33 table 40. description of waterlevelreg bits. . . . . . . . . . 33 table 41. controlreg register (address 0ch); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 33 table 42. description of controlreg bits . . . . . . . . . . . . 33 table 43. bitframingreg register (address 0dh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 34 table 44. description of bitframi ngreg bits . . . . . . . . . . 34 table 45. collreg register (address 0eh); reset value: xxh, 101xxxxxb . . . . . . . . . . . . . . . . . 35 table 46. description of collreg bits. . . . . . . . . . . . . . . . 35 table 47. pagereg register (address 10h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 36 table 48. description of pagereg bits . . . . . . . . . . . . . . 36 table 49. modereg register (address 11h); reset value: 3bh, 00111011b . . . . . . . . . . . . . . . . . . . . . . . . 37 table 50. description of modereg bits . . . . . . . . . . . . . . 37 table 51. txmodereg register (address 12h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 38 table 52. description of txmodereg bits . . . . . . . . . . . . 38 table 53. rxmodereg register (address 13h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 39 table 54. description of rxmodereg bits . . . . . . . . . . . . 39 table 55. txcontrolreg register (address 14h); reset value: 80h, 10000000b . . . . . . . . . . . . . . . . . . 40 table 56. description of txcontrolreg bits . . . . . . . . . . . 40 table 57. txautoreg register (address 15h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 41 table 58. description of txautoreg bits . . . . . . . . . . . . . 41 table 59. txselreg register (address 16h); reset value: 10h, 00010000b . . . . . . . . . . . . . . . . . . . . . . . . 42 table 60. description of txselreg bits . . . . . . . . . . . . . . 42 table 61. rxselreg register (address 17h); reset value: 84h, 10000100b . . . . . . . . . . . . . . . . . . . . . . . . 44 table 62. description of rxselreg bits . . . . . . . . . . . . . . 44 table 63. rxthresholdreg register (address 18h); reset value: 84h, 10000100b . . . . . . . . . . . . . . 44 table 64. description of rxthresholdreg bits . . . . . . . . 44 table 65. demodreg register (address 19h); reset value: 4dh, 01001101b . . . . . . . . . . . . . . . . . . 45 table 66. description of demodreg bits . . . . . . . . . . . . . 45 table 67. felnfc1reg register (address 1ah); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 46 table 68. description of felnfc1reg bits . . . . . . . . . . . 46 table 69. felnfc2reg register (address1bh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 47 table 70. description of felnfc2reg bits . . . . . . . . . . . 47 table 71. mifnfcreg register (address 1ch); reset value: 62h, 01100010b. . . . . . . . . . . . . . . . . . . 48 table 72. description of mifnfcreg bits. . . . . . . . . . . . . 48 table 73. manualrcvreg register (address 1dh); reset value: 00h, 00000000b . . . . . . . . . . . . . . 49 table 74. description of manualrcvreg bits . . . . . . . . . 49 table 75. typebreg register (address 1eh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 50 table 76. description of typebreg bits. . . . . . . . . . . . . . 50 t a ble 77. serialspeedreg register (address 1fh);
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 131 of 136 nxp semiconductors pn512 full nfc forum compliant solution reset value: ebh, 11101011b . . . . . . . . . . . . . .51 table 78. description of serialspeedreg bits . . . . . . . . .51 table 79. pagereg register (address 20h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .52 table 80. description of pagereg bits . . . . . . . . . . . . . . .52 table 81. crcresultreg register (address 21h); reset value: ffh, 11111111b. . . . . . . . . . . . . . . . . . . . 52 table 82. description of crcresultreg bits . . . . . . . . . .52 table 83. crcresultreg register (address 22h); reset value: ffh, 11111111b. . . . . . . . . . . . . . . . . . . . 52 table 84. description of crcresultreg bits . . . . . . . . . .52 table 85. gsnoffreg register (address 23h); reset value: 88h, 10001000b . . . . . . . . . . . . . . . . . . .53 table 86. description of gsnoffreg bits . . . . . . . . . . . . .53 table 87. modwidthreg register (address 24h); reset value: 26h, 00100110b . . . . . . . . . . . . . . . . . . .54 table 88. description of modwidthreg bits . . . . . . . . . . .54 table 89. txbitphasereg register (address 25h); reset value: 87h, 10000111b . . . . . . . . . . . . . . . . . . .54 table 90. description of txbitphasereg bits . . . . . . . . . .54 table 91. rfcfgreg register (address 26h); reset value: 48h, 01001000b . . . . . . . . . . . . . . . . . . .55 table 92. description of rfcfgreg bits . . . . . . . . . . . . .55 table 93. gsnonreg register (address 27h); reset value: 88h, 10001000b . . . . . . . . . . . . . . . . . . .56 table 94. description of gsnonreg bits . . . . . . . . . . . . .56 table 95. cwgspreg register (address 28h); reset value: 20h, 00100000b . . . . . . . . . . . . . . . . . . .56 table 96. description of cwgspreg bits. . . . . . . . . . . . .56 table 97. modgspreg register (address 29h); reset value: 20h, 00100000b . . . . . . . . . . . . . . . . . . .57 table 98. description of modgspreg bits . . . . . . . . . . . .57 table 99. tmodereg register (address 2ah); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . .57 table 100. description of tmodereg bits . . . . . . . . . . . . .57 table 101. tprescalerreg register (address 2bh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . .58 table 102. description of tprescalerreg bits . . . . . . . . . .58 table 103. treloadreg (higher bits) register (address 2ch); reset value: 00h, 00000000b . . . . . . . . .59 table 104. description of the higher treloadreg bits . . .59 table 105. treloadreg (lower bits) register (address 2dh); reset value: 00h, 00000000b . . . . . . . . .59 table 106. description of lower treloadreg bits . . . . . . .59 table 107. tcountervalreg (higher bits) register (address 2eh); reset value: xxh, xxxxxxxxb . . . . . . .60 table 108. description of the higher tcountervalreg bits 60 table 109. tcountervalreg (lower bits) register (address 2fh); reset val ue: xxh, xxxxxxxxb. . . . . . . .60 table 110. description of lower tcountervalreg bits . . . .60 table 111. pagereg register (address 30h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .60 table 112. description of pagereg bits. . . . . . . . . . . . . . .61 table 113. testsel1reg register (address 31h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . .62 table 114. description of testsel1reg bits . . . . . . . . . . . .62 table 115. testsel2reg register (address 32h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . .62 table 116. description of testsel2 reg bits. . . . . . . . . . . . 62 table 117. testpinenreg register (address 33h); reset value: 80h, 10000000b . . . . . . . . . . . . . . . . . . 63 table 118. description of testpinenreg bits . . . . . . . . . . 63 table 119. testpinvaluereg register (address 34h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 63 table 120. description of testpinvaluereg bits . . . . . . . . 63 table 121. testbusreg register (address 35h); reset value: xxh, xxxxxxxxb . . . . . . . . . . . . . . . . 64 table 122. description of testbusreg bits . . . . . . . . . . . . 64 table 123. autotestreg register (address 36h); reset value: 40h, 01000000b . . . . . . . . . . . . . . . . . . 64 table 124. description of bits . . . . . . . . . . . . . . . . . . . . . . 64 table 125. versionreg register (address 37h); reset value: xxh, xxxxxxxxb . . . . . . . . . . . . . . . . 65 table 126. description of versionreg bits . . . . . . . . . . . . 65 table 127. analogtestreg register (address 38h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 66 table 128. description of analogtestreg bits . . . . . . . . . 66 table 129. testdac1reg register (address 39h); reset value: xxh, 00xxxxxxb . . . . . . . . . . . . . . . . . 67 table 130. description of testdac1reg bits . . . . . . . . . . 67 table 131. testdac2reg register (address 3ah); reset value: xxh, 00xxxxxxb . . . . . . . . . . . . . . . . . 67 table 132. description oftestdac2reg bits . . . . . . . . . . . 67 table 133. testadcreg register (address 3bh); reset value: xxh, xxxxxxxxb . . . . . . . . . . . . . . . . 67 table 134. description of testadcreg bits . . . . . . . . . . . 67 table 135. rftreg register (address 3ch); reset value: ffh, 11111111b . . . . . . . . . . . . . . . . . . . . . . . . 68 table 136. description of rftreg bits . . . . . . . . . . . . . . . 68 table 137. rftreg register (address 3dh, 3fh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 68 table 138. description of rftreg bits . . . . . . . . . . . . . . . 68 table 139. rftreg register (address 3eh); reset value: 03h, 00000011b . . . . . . . . . . . . . . . . . . . . . . . . 68 table 140. description of rftreg bits . . . . . . . . . . . . . . . 68 table 141. connection protocol for detecting different interface types . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 142. connection scheme for detecting the different interface types . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 143. mosi and miso byte order . . . . . . . . . . . . . . 70 table 144. mosi and miso byte order . . . . . . . . . . . . . . 71 table 145. address byte 0 register; address mosi . . . . . 71 table 146. br_t0 and br_t1 settings . . . . . . . . . . . . . . 72 table 147. selectable uart tran sfer speeds . . . . . . . . . 72 table 148. uart framing . . . . . . . . . . . . . . . . . . . . . . . . . 72 table 149. read data byte order . . . . . . . . . . . . . . . . . . . 73 table 150. write data byte order . . . . . . . . . . . . . . . . . . . 73 table 151. address byte 0 register; address mosi . . . . . 75 t a ble 152. supported interface types . . . . . . . . . . . . . . . . 82 table 153. register and bit settings controlling the signal on pin tx1 . . . . . . . . . . . . . . . . . . . . . . 84 table 154. register and bit settings controlling the signal on pin tx2 . . . . . . . . . . . . . . . . . . . . . . 85 table 155. setting of the bits rflevel in register rfcfgreg (rflevel amplifier deactivated) . . . 86 table 156. crc coprocessor parame ters . . . . . . . . . . . . 93
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 132 of 136 nxp semiconductors pn512 full nfc forum compliant solution table 157. interrupt sources . . . . . . . . . . . . . . . . . . . . . . .95 table 158. command overview . . . . . . . . . . . . . . . . . . .101 table 159. testsignal routing (testsel2reg = 07h) . . . . .107 table 160. description of testsignals . . . . . . . . . . . . . . .107 table 161. testsignal routing (testsel2reg = 0dh) . . . .108 table 162. description of testsignals . . . . . . . . . . . . . . .108 table 163. testsignal routing (testsel2reg = 19h) . . . . .108 table 164. description of testsignals . . . . . . . . . . . . . . .108 table 165. testsignals description. . . . . . . . . . . . . . . . . .108 table 166. limiting values . . . . . . . . . . . . . . . . . . . . . . . 111 table 167. operating conditions . . . . . . . . . . . . . . . . . . . 111 table 168. thermal characteristics . . . . . . . . . . . . . . . . . 112 table 169. characteristics . . . . . . . . . . . . . . . . . . . . . . . 112 table 170. spi timing characteristics . . . . . . . . . . . . . . . 117 table 171. i 2 c-bus timing in fast mode . . . . . . . . . . . . . 117 table 172. ac symbols . . . . . . . . . . . . . . . . . . . . . . . . . . 119 table 173. timing specification for separated read/write strobe. . . . . . . . . . . . . . . . . . . . . . 119 table 174. timing specification for common read/write strobe. . . . . . . . . . . . . . . . . . . . . .120 table 175. package information . . . . . . . . . . . . . . . . . . .122 table 176. abbreviations . . . . . . . . . . . . . . . . . . . . . . . .126 table 177. revision history . . . . . . . . . . . . . . . . . . . . . . .127
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 133 of 136 nxp semiconductors pn512 full nfc forum compliant solution 36. figures fig 1. simplified block diagram of the pn512 . . . . . . . . .6 fig 2. detailed block diagram of the pn512 . . . . . . . . . .7 fig 3. pinning configuration hvqfn32 (sot617-1) . . . .8 fig 4. pinning configuration hvqfn40 (sot618-1) . . . .8 fig 5. pin configuration tfbga64 (sot1336-1) . . . . . . .9 fig 6. pn512 read/write mode . . . . . . . . . . . . . . . . . . .14 fig 7. iso/iec 14443 a/mifare read/write mode communication diagram. . . . . . . . . . . . . . . . . . . .14 fig 8. data coding and framing according to iso/iec 14443 a . . . . . . . . . . . . . . . . . . . . . . . . .15 fig 9. felica reader/writer communication diagram . . .16 fig 10. nfcip-1 mode . . . . . . . . . . . . . . . . . . . . . . . . . . .17 fig 11. active communication mode . . . . . . . . . . . . . . . .18 fig 12. passive communication mode . . . . . . . . . . . . . . .19 fig 13. spi connection to host . . . . . . . . . . . . . . . . . . . . .70 fig 14. uart connection to microcontrollers . . . . . . . . .71 fig 15. uart read data timing diagram . . . . . . . . . . . . .73 fig 16. uart write data timing di agram . . . . . . . . . . . . .74 fig 17. i 2 c-bus interface . . . . . . . . . . . . . . . . . . . . . . . . .75 fig 18. bit transfer on the i 2 c-bus . . . . . . . . . . . . . . . . . .76 fig 19. start and stop conditions . . . . . . . . . . . . . . .76 fig 20. acknowledge on the i 2 c-bus . . . . . . . . . . . . . . . .77 fig 21. data transfer on the i 2 c-bus . . . . . . . . . . . . . . . .77 fig 22. first byte following the start procedure . . . . . .78 fig 23. register read and write access . . . . . . . . . . . . . .79 fig 24. i 2 c-bus hs mode protocol switch . . . . . . . . . . . .80 fig 25. i 2 c-bus hs mode protocol frame. . . . . . . . . . . . .81 fig 26. connection to host controller with separated read/write strobes . . . . . . . . . . . . . . . . . . . . . . .83 fig 27. connection to host controller with common read/write strobes . . . . . . . . . . . . . . . . . . . . . . .83 fig 28. data mode detector . . . . . . . . . . . . . . . . . . . . . . .87 fig 29. serial data switch for tx1 and tx2 . . . . . . . . . . .88 fig 30. communication flows using the s 2 c interface. . .89 fig 31. signal shape for sigout in felica card sam mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 fig 32. signal shape for sigin in sam mode . . . . . . . . .90 fig 33. signal shape for sigout in mifare card sam mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91 fig 34. signal shape for sigin in mifare card sam mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91 fig 35. quartz crystal connection . . . . . . . . . . . . . . . . . .99 fig 36. oscillator start-up time . . . . . . . . . . . . . . . . . . . .100 fig 37. autocoll command . . . . . . . . . . . . . . . . . . . . . .104 fig 38. typical circuit diagram . . . . . . . . . . . . . . . . . . . . 110 fig 39. pin rx input voltage range . . . . . . . . . . . . . . . . 116 fig 40. timing diagram for spi . . . . . . . . . . . . . . . . . . . 118 fig 41. timing for fast and standard mode devices on the i 2 c-bus . . . . . . . . . . . . . . . . . . . . . . . . . . 118 fig 42. timing diagram for separated read/write strobe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .120 fig 43. timing diagram for common read/write strobe 121 fig 44. package outline package version (hvqfn32) .123 fig 45. package outline package version (hvqfn40) .124 fig 46. package outline package version (tfbga64). .125
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 134 of 136 continued >> nxp semiconductors pn512 full nfc forum compliant solution 37. contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.1 different available versions. . . . . . . . . . . . . . . . 1 2 general description . . . . . . . . . . . . . . . . . . . . . . 1 3 features and benefits . . . . . . . . . . . . . . . . . . . . 3 4 quick reference data . . . . . . . . . . . . . . . . . . . . . 4 5 ordering information . . . . . . . . . . . . . . . . . . . . . 5 6 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 6 7 pinning information . . . . . . . . . . . . . . . . . . . . . . 8 7.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 7.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . 10 8 functional description . . . . . . . . . . . . . . . . . . 14 8.1 iso/iec 14443 a/mifare functionality . . . . . 14 8.2 iso/iec 14443 b functionality . . . . . . . . . . . . 15 8.3 felica reader/writer functionality . . . . . . . . . . 16 8.3.1 felica framing and coding . . . . . . . . . . . . . . . 16 8.4 nfcip-1 mode . . . . . . . . . . . . . . . . . . . . . . . . 17 8.4.1 active communication mode . . . . . . . . . . . . . 18 8.4.2 passive communication mode . . . . . . . . . . . . 19 8.4.3 nfcip-1 framing and coding . . . . . . . . . . . . . 20 8.4.4 nfcip-1 protocol support . . . . . . . . . . . . . . . . 20 8.4.5 mifare card operation mode . . . . . . . . . . . . 20 8.4.6 felica card operation mode . . . . . . . . . . . . . 21 9 pn512 register set . . . . . . . . . . . . . . . . . . . . . 21 9.1 pn512 registers overview. . . . . . . . . . . . . . . . 21 9.1.1 register bit behavior. . . . . . . . . . . . . . . . . . . . 23 9.2 register description . . . . . . . . . . . . . . . . . . . . 24 9.2.1 page 0: command and status . . . . . . . . . . . . 24 9.2.1.1 pagereg. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 9.2.1.2 commandreg . . . . . . . . . . . . . . . . . . . . . . . . 24 9.2.1.3 commienreg . . . . . . . . . . . . . . . . . . . . . . . . . 25 9.2.1.4 divienreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 9.2.1.5 commirqreg . . . . . . . . . . . . . . . . . . . . . . . . . 27 9.2.1.6 divirqreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 9.2.1.7 errorreg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 9.2.1.8 status1reg . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 9.2.1.9 status2reg . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 9.2.1.10 fifodatareg . . . . . . . . . . . . . . . . . . . . . . . . . 32 9.2.1.11 fifolevelreg . . . . . . . . . . . . . . . . . . . . . . . . 32 9.2.1.12 waterlevelreg . . . . . . . . . . . . . . . . . . . . . . . . 33 9.2.1.13 controlreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 9.2.1.14 bitframingreg . . . . . . . . . . . . . . . . . . . . . . . . 34 9.2.1.15 collreg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 9.2.2 page 1: communication . . . . . . . . . . . . . . . . . 36 9.2.2.1 pagereg. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 9.2.2.2 modereg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 9.2.2.3 txmodereg . . . . . . . . . . . . . . . . . . . . . . . . . . 38 9.2.2.4 rxmodereg . . . . . . . . . . . . . . . . . . . . . . . . . . 39 9.2.2.5 txcontrolreg. . . . . . . . . . . . . . . . . . . . . . . . . 40 9.2.2.6 txautoreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 9.2.2.7 txselreg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 9.2.2.8 rxselreg. . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 9.2.2.9 rxthresholdreg . . . . . . . . . . . . . . . . . . . . . . 44 9.2.2.10 demodreg. . . . . . . . . . . . . . . . . . . . . . . . . . . 45 9.2.2.11 felnfc1reg . . . . . . . . . . . . . . . . . . . . . . . . . 46 9.2.2.12 felnfc2reg . . . . . . . . . . . . . . . . . . . . . . . . . 47 9.2.2.13 mifnfcreg . . . . . . . . . . . . . . . . . . . . . . . . . . 48 9.2.2.14 manualrcvreg . . . . . . . . . . . . . . . . . . . . . . . 49 9.2.2.15 typebreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 9.2.2.16 serialspeedreg . . . . . . . . . . . . . . . . . . . . . . . 50 9.2.3 page 2: configuration . . . . . . . . . . . . . . . . . . 52 9.2.3.1 pagereg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.2.3.2 crcresultreg . . . . . . . . . . . . . . . . . . . . . . . 52 9.2.3.3 gsnoffreg . . . . . . . . . . . . . . . . . . . . . . . . . . 53 9.2.3.4 modwidthreg . . . . . . . . . . . . . . . . . . . . . . . . 54 9.2.3.5 txbitphasereg . . . . . . . . . . . . . . . . . . . . . . . 54 9.2.3.6 rfcfgreg . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 9.2.3.7 gsnonreg . . . . . . . . . . . . . . . . . . . . . . . . . . 56 9.2.3.8 cwgspreg . . . . . . . . . . . . . . . . . . . . . . . . . . 56 9.2.3.9 modgspreg . . . . . . . . . . . . . . . . . . . . . . . . . 57 9.2.3.10 tmode register, tprescaler register . . . . . . 57 9.2.3.11 treloadreg. . . . . . . . . . . . . . . . . . . . . . . . . . 59 9.2.3.12 tcountervalreg . . . . . . . . . . . . . . . . . . . . . . 60 9.2.4 page 3: test . . . . . . . . . . . . . . . . . . . . . . . . . . 60 9.2.4.1 pagereg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 9.2.4.2 testsel1reg. . . . . . . . . . . . . . . . . . . . . . . . . . 62 9.2.4.3 testsel2reg. . . . . . . . . . . . . . . . . . . . . . . . . . 62 9.2.4.4 testpinenreg . . . . . . . . . . . . . . . . . . . . . . . . 63 9.2.4.5 testpinvaluereg . . . . . . . . . . . . . . . . . . . . . . 63 9.2.4.6 testbusreg . . . . . . . . . . . . . . . . . . . . . . . . . . 64 9.2.4.7 autotestreg . . . . . . . . . . . . . . . . . . . . . . . . . 64 9.2.4.8 versionreg . . . . . . . . . . . . . . . . . . . . . . . . . . 64 9.2.4.9 analogtestreg. . . . . . . . . . . . . . . . . . . . . . . . 66 9.2.4.10 testdac1reg . . . . . . . . . . . . . . . . . . . . . . . . 67 9.2.4.11 testdac2reg . . . . . . . . . . . . . . . . . . . . . . . . 67 9.2.4.12 testadcreg . . . . . . . . . . . . . . . . . . . . . . . . . 67 9.2.4.13 rftreg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 10 digital interfaces . . . . . . . . . . . . . . . . . . . . . . . 68 10.1 automatic microcontroller interface detection 68 10.2 serial peripheral interface . . . . . . . . . . . . . . . 70 10.2.1 spi read data . . . . . . . . . . . . . . . . . . . . . . . . . 70 10.2.2 spi write data. . . . . . . . . . . . . . . . . . . . . . . . . 70 10.2.3 spi address byte . . . . . . . . . . . . . . . . . . . . . . 71 10.3 uart interface . . . . . . . . . . . . . . . . . . . . . . . 71 10.3.1 connection to a host . . . . . . . . . . . . . . . . . . . 71
pn512 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2013. all rights reserved. product data sheet company public rev. 4.5 ? 17 december 2013 111345 135 of 136 continued >> nxp semiconductors pn512 full nfc forum compliant solution 10.3.2 selectable uart transfer speeds . . . . . . . . . 71 10.3.3 uart framing . . . . . . . . . . . . . . . . . . . . . . . . . 72 10.4 i 2 c bus interface . . . . . . . . . . . . . . . . . . . . . . 75 10.4.1 data validity . . . . . . . . . . . . . . . . . . . . . . . . . . 76 10.4.2 start and stop conditions . . . . . . . . . . . . . 76 10.4.3 byte format . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 10.4.4 acknowledge . . . . . . . . . . . . . . . . . . . . . . . . . 77 10.4.5 7-bit addressing . . . . . . . . . . . . . . . . . . . . . . . 78 10.4.6 register write access . . . . . . . . . . . . . . . . . . . 78 10.4.7 register read access . . . . . . . . . . . . . . . . . . . 79 10.4.8 high-speed mode . . . . . . . . . . . . . . . . . . . . . . 80 10.4.9 high-speed transfer . . . . . . . . . . . . . . . . . . . . 80 10.4.10 serial data transfer fo rmat in hs mode . . . . . 80 10.4.11 switching between f/s mode and hs mode . 82 10.4.12 pn512 at lower speed modes . . . . . . . . . . . . 82 11 8-bit parallel interface . . . . . . . . . . . . . . . . . . . 82 11.1 overview of supported host controller interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 11.2 separated read/write stro be . . . . . . . . . . . . . 83 11.3 common read/write strobe . . . . . . . . . . . . . . 83 12 analog interface and contactless uart . . . . 84 12.1 general . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 12.2 tx driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 12.3 rf level detector . . . . . . . . . . . . . . . . . . . . . . 85 12.4 data mode detector . . . . . . . . . . . . . . . . . . . . 86 12.5 serial data switch . . . . . . . . . . . . . . . . . . . . . . 88 12.6 s 2 c interface support . . . . . . . . . . . . . . . . . . . 88 12.6.1 signal shape for felica s 2 c interface support 90 12.6.2 waveform shape for iso/iec 14443a and mifare s 2 c support . . . . . . . . . . . . . . . . . . . 91 12.7 hardware support for felica and nfc polling 92 12.7.1 polling sequence functionality for initiator. . . . 92 12.7.2 polling sequence functionality for target . . . . . 92 12.7.3 additional hardware support for felica and nfc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 12.7.4 crc coprocessor . . . . . . . . . . . . . . . . . . . . . . 93 13 fifo buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 13.1 accessing the fifo buffer . . . . . . . . . . . . . . . 94 13.2 controlling the fifo buffer . . . . . . . . . . . . . . . 94 13.3 fifo buffer status information . . . . . . . . . . . . 94 14 interrupt request system. . . . . . . . . . . . . . . . . 95 14.1 interrupt sources overview . . . . . . . . . . . . . . . 95 15 timer unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 16 power reduction modes . . . . . . . . . . . . . . . . . 98 16.1 hard power-down . . . . . . . . . . . . . . . . . . . . . . 98 16.2 soft power-down mode. . . . . . . . . . . . . . . . . . 98 16.3 transmitter power-down mode . . . . . . . . . . . . 98 17 oscillator circuitry . . . . . . . . . . . . . . . . . . . . . . 99 18 reset and oscillator start-up time . . . . . . . . . 99 18.1 reset timing requirements . . . . . . . . . . . . . . . 99 18.2 oscillator start-up time . . . . . . . . . . . . . . . . . . 99 19 pn512 command set . . . . . . . . . . . . . . . . . . . 100 19.1 general description . . . . . . . . . . . . . . . . . . . 100 19.2 general behavior . . . . . . . . . . . . . . . . . . . . . 100 19.3 pn512 command overview . . . . . . . . . . . . . 101 19.3.1 pn512 command descripti ons . . . . . . . . . . . 101 19.3.1.1 idle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 19.3.1.2 config command . . . . . . . . . . . . . . . . . . . . . 101 19.3.1.3 generate randomid . . . . . . . . . . . . . . . . . . 102 19.3.1.4 calccrc . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 19.3.1.5 transmit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 19.3.1.6 nocmdchange . . . . . . . . . . . . . . . . . . . . . . 102 19.3.1.7 receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 19.3.1.8 transceive . . . . . . . . . . . . . . . . . . . . . . . . . . 103 19.3.1.9 autocoll . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 19.3.1.10 mfauthent . . . . . . . . . . . . . . . . . . . . . . . . . . 105 19.3.1.11 softreset . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 20 testsignals. . . . . . . . . . . . . . . . . . . . . . . . . . . 107 20.1 selftest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 20.2 testbus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 20.3 testsignals at pin aux . . . . . . . . . . . . . . . . . 108 20.4 prbs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 21 errata sheet . . . . . . . . . . . . . . . . . . . . . . . . . . 109 22 application design-in information. . . . . . . . . 110 23 limiting values . . . . . . . . . . . . . . . . . . . . . . . . 111 24 recommended operating conditions . . . . . . 111 25 thermal characteristics . . . . . . . . . . . . . . . . . 112 26 characteristics . . . . . . . . . . . . . . . . . . . . . . . . 112 26.1 timing characteristics . . . . . . . . . . . . . . . . . . 117 26.2 8-bit parallel interface timing . . . . . . . . . . . . . 119 26.2.1 ac symbols . . . . . . . . . . . . . . . . . . . . . . . . . . 119 26.2.2 ac operating specification . . . . . . . . . . . . . . . 119 26.2.2.1 bus timing for separated read/write strobe . 119 26.2.2.2 bus timing for common read/write strobe . 120 27 package information. . . . . . . . . . . . . . . . . . . 122 28 package outline. . . . . . . . . . . . . . . . . . . . . . . 123 29 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . 126 30 glossary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 31 references. . . . . . . . . . . . . . . . . . . . . . . . . . . 126 32 revision history . . . . . . . . . . . . . . . . . . . . . . 127 33 legal information . . . . . . . . . . . . . . . . . . . . . 128 33.1 data sheet status . . . . . . . . . . . . . . . . . . . . . 128 33.2 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . 128 33.3 disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . 128 33.4 licenses. . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 33.5 trademarks . . . . . . . . . . . . . . . . . . . . . . . . . 129
nxp semiconductors pn512 full nfc forum compliant solution ? nxp b.v. 2013. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please se nd an email to: salesaddresses@nxp.com date of release: 17 december 2013 111345 please be aware that important notices concerning this document and the product(s) described herein, have been included in section ?legal information?. 34 contact information. . . . . . . . . . . . . . . . . . . . 129 35 tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 36 figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 37 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134


▲Up To Search▲   

 
Price & Availability of PN5120A0ET

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X